Skip to content

Commit

Permalink
tests: make tests pass in pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Nov 27, 2022
1 parent 4d6fc81 commit eddd21b
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- run: python -m pip install --upgrade pip poetry
- name: Build and publish
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11.0"
- run: pip install pre-commit
- uses: actions/cache@v3
id: pre-commit-cache
Expand All @@ -29,14 +29,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11.0" ]
django-version: [ "3.1", "3.2", "4.0", "4.1" ]
python-version: [ "3.7.15", "3.8.13", "3.9.15", "3.10.8", "3.11.0" ]
django-version: [ "3.2", "4.0", "4.1" ]
exclude:
# Django v4 drops Python 3.7 support
- django-version: 4.0
python-version: 3.7
python-version: 3.7.15
- django-version: 4.1
python-version: 3.7
python-version: 3.7.15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -50,7 +50,7 @@ jobs:
- uses: snok/install-poetry@v1
with:
virtualenvs-create: false
version: 1.1.13
version: 1.2.2
- uses: actions/cache@v3
id: cache-venv
with:
Expand All @@ -76,4 +76,4 @@ jobs:
with:
file: ./coverage.xml
fail_ci_if_error: true
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.11'
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ repos:
rev: v0.991
hooks:
- id: mypy
additional_dependencies:
[
django
]
Loading

0 comments on commit eddd21b

Please sign in to comment.