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

chore: Update tests to avoid running setup test #174

Merged
merged 12 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
20 changes: 12 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
django-version: ['3.2', '4.0', '4.1']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['3.2', '4.2', '5.0', '5.1']
os: [
ubuntu-20.04,
ubuntu-latest
]

exclude:
- django-version: '5.0'
python-version: 3.9
- django-version: '5.1'
python-version: 3.9
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -23,11 +27,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install django==${{ matrix.django-version }} coverage
pip install django~=${{ matrix.django-version }} coverage
python setup.py install

- name: Run coverage
run: coverage run setup.py test
run: coverage run tests/settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
Expand All @@ -43,7 +47,7 @@ jobs:
'https://github.com/django/django/archive/main.tar.gz'
]
os: [
ubuntu-20.04,
ubuntu-latest,
]

steps:
Expand All @@ -60,7 +64,7 @@ jobs:
python setup.py install

- name: Run coverage
run: coverage run setup.py test
run: coverage run tests/settings.py
continue-on-error: true

- name: Upload Coverage to Codecov
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ skip_missing_interpreters=True
deps =
-r{toxinidir}/tests/requirements/base.txt
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<4.1
fsbraun marked this conversation as resolved.
Show resolved Hide resolved
fsbraun marked this conversation as resolved.
Show resolved Hide resolved
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} run tests/settings.py
{env:COMMAND:coverage} report
ignore_outcome =
djmain: True
Expand Down
Loading