Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] CI maintenance #46

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading