|
46 | 46 | # run: |
|
47 | 47 | # pytest
|
48 | 48 |
|
49 |
| - lint-python3-rocky9ish: |
50 |
| - runs-on: ubuntu-22.04 |
51 |
| - steps: |
52 |
| - - uses: actions/checkout@v4 |
53 |
| - - name: Set up Python 3.9.18 to mimic Rocky9 |
54 |
| - uses: actions/setup-python@v5 |
55 |
| - with: |
56 |
| - python-version: "3.9.18" |
57 |
| - - name: Install dependencies |
58 |
| - run: | |
59 |
| - python -m pip install --upgrade pip |
60 |
| - pip install flake8 pytest |
61 |
| - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
62 |
| - - name: Lint with flake8 |
63 |
| - run: | |
64 |
| - # TODO: fix unittest dir and remove from excludes |
65 |
| - # TODO: fix or migrate legacy grsfs-fuse dir and remove from excludes |
66 |
| - # NOTE: include tests here as they should be fully python3 compatible |
67 |
| - # stop the build if there are Python syntax errors or undefined names |
68 |
| - 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 |
69 |
| - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
70 |
| - 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 |
71 |
| - # NOTE: for interactive clean up one can use current ignores |
72 |
| - # E501 Ignore long lines, E402 imports below top, E722 bare except, |
73 |
| - # F401 unused imports, F502 explicit list in str expand, F841 unused var, |
74 |
| - # E721 compare type instead of isinstance, W293 blank line with space, |
75 |
| - # C901 too complex get |
76 |
| - #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 |
77 |
| - # TODO: prepare and enable pytest |
78 |
| - #- name: Test with pytest |
79 |
| - # run: | |
80 |
| - # pytest |
81 |
| - |
82 | 49 | lint-python3-rocky9:
|
83 | 50 | runs-on: ubuntu-22.04
|
84 | 51 | container:
|
|
0 commit comments