Skip to content

Commit ca2907e

Browse files
committed
Add proper rocky 8 and 9 runners like for edge.
1 parent ae482d1 commit ca2907e

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ jobs:
5353
run: |
5454
make test
5555
56+
python3-rocky9:
57+
runs-on: ubuntu-22.04
58+
container:
59+
image: rockylinux/rockylinux:9
60+
steps:
61+
- name: Check out repository contents
62+
uses: actions/checkout@v3
63+
- name: Set up Python 3 and make with DNF
64+
run: |
65+
dnf install -y python3 python3-pip make
66+
- name: Setup environment
67+
run: |
68+
make dependencies
69+
- name: Run tests
70+
run: |
71+
make test
72+
5673
python3-rocky8ish:
5774
runs-on: ubuntu-20.04
5875
steps:
@@ -69,6 +86,23 @@ jobs:
6986
run: |
7087
make test
7188
89+
python3-rocky8:
90+
runs-on: ubuntu-20.04
91+
container:
92+
image: rockylinux/rockylinux:8
93+
steps:
94+
- name: Check out repository contents
95+
uses: actions/checkout@v3
96+
- name: Set up Python 3 and make with DNF
97+
run: |
98+
dnf install -y python3 python3-pip make
99+
- name: Setup environment
100+
run: |
101+
make dependencies
102+
- name: Run tests
103+
run: |
104+
make test
105+
72106
python2-latest:
73107
runs-on: ubuntu-latest
74108
container:

.github/workflows/python-sanity-check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,36 @@ jobs:
7979
# run: |
8080
# pytest
8181

82+
lint-python3-rocky9:
83+
runs-on: ubuntu-22.04
84+
container:
85+
image: rockylinux/rockylinux:8
86+
steps:
87+
- uses: actions/checkout@v4
88+
- name: Set up Python 3 with DNF
89+
run: |
90+
dnf install -y python3 python3-pip python-unversioned-command
91+
- name: Install dependencies
92+
run: |
93+
python -m pip install --upgrade pip
94+
pip install flake8 pytest
95+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
96+
- name: Lint with flake8
97+
run: |
98+
# TODO: fix unittest dir and remove from excludes
99+
# TODO: fix or migrate legacy grsfs-fuse dir and remove from excludes
100+
# NOTE: include tests here as they should be fully python3 compatible
101+
# stop the build if there are Python syntax errors or undefined names
102+
flake8 . --exclude=state,envhelp,fixture,output,unittest,grsfs-fuse,irclib.py,seafile-seahub_settings-template.py --count --select=E9,F63,F7,F82 --show-source --statistics
103+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
104+
flake8 . --exclude=state,envhelp,fixture,output,unittest,grsfs-fuse,vm-proxy,irclib.py,seafile-seahub_settings-template.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
105+
# NOTE: for interactive clean up one can use current ignores
106+
# E501 Ignore long lines, E402 imports below top, E722 bare except,
107+
# F401 unused imports, F502 explicit list in str expand, F841 unused var,
108+
# E721 compare type instead of isinstance, W293 blank line with space,
109+
# C901 too complex get
110+
#flake8 mig --exclude=unittest,grsfs-fuse,vm-proxy,irclib.py,seafile-seahub_settings-template.py --ignore=E501,E402,E722,F401,F502,E713,F841,C901 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
111+
# TODO: prepare and enable pytest
112+
#- name: Test with pytest
113+
# run: |
114+
# pytest

0 commit comments

Comments
 (0)