Skip to content

Commit

Permalink
[ci] CI maintenance
Browse files Browse the repository at this point in the history
- Updated Python versions
- Always update pip to the latest available version
- Avoid stopping build if QA checs fail
- Updated tox conf
  • Loading branch information
nemesifier committed Jul 25, 2024
1 parent 5d45996 commit 969fcd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version:
- "3.8"
- "3.9"
- "3.10"

steps:
- uses: actions/checkout@v2
Expand All @@ -28,13 +31,15 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
id: deps
run: |
pip install -U "pip==20.2.4" wheel setuptools
pip install -U pip wheel setuptools
pip install tox tox-gh-actions
pip install openwisp-utils[qa]@https://github.com/openwisp/openwisp-utils/tarball/master
- name: QA checks
run: ./run-qa-checks

- name: Test
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
run: tox
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ deps =
setenv =
noswap: DJANGO_SETTINGS_MODULE=tests.settings
swap: DJANGO_SETTINGS_MODULE=tests.swap_settings
whitelist_externals = rm
allowlist_externals = rm

[testenv:lint]
commands =
rm -rf tests/default_app/migrations/ tests/alt_app/migrations/
flake8 swapper tests
allowlist_externals =
rm
flake8

0 comments on commit 969fcd6

Please sign in to comment.