Skip to content

Commit

Permalink
cicd: Enable tests for python 3.12 (#1167)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Max Meyer <[email protected]>
  • Loading branch information
sveneberth and phorward authored May 22, 2024
1 parent 4063609 commit d88e08f
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 453 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pep8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
linter:
strategy:
matrix:
python: [ "3.10" ]
python: [ "3.12" ]
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
strategy:
matrix:
python: [ "3.10", "3.11" ]
python: [ "3.10", "3.11", "3.12" ]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
pwd
- name: Build Coverage
if: ${{ matrix.python == '3.11' && github.event_name == 'push' && github.ref_name == 'main' }}
if: ${{ matrix.python == '3.12' && github.event_name == 'push' && github.ref_name == 'main' }}
working-directory: viur/tests/
run: |
# generate coverage
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Deploy Coverage
uses: peaceiris/actions-gh-pages@v3
if: ${{ matrix.python == '3.11' && github.event_name == 'push' && github.ref_name == 'main' }}
if: ${{ matrix.python == '3.12' && github.event_name == 'push' && github.ref_name == 'main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./viur/tests/htmlcov
Expand Down
2 changes: 1 addition & 1 deletion tests/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ coverage = "*"
coverage-badge = "*"

[requires]
python_version = "3.11"
python_version = "3.12"

[scripts]
coverage = "./do_coverage.sh"
Loading

0 comments on commit d88e08f

Please sign in to comment.