Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soratidus999 committed Aug 31, 2024
1 parent 5efda09 commit babc19d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
# python-version: ['3.9']
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "latest"

- run: redis-cli ping

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: install dependencies
run: make dev
Expand Down
28 changes: 15 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
[tox]
skipsdist = False
usedevelop = True
envlist = py3
isolated_build = true
skipsdist = true
usedevelop = true
envlist = {py38, py39, py310, py311}-django40, {py38, py39, py310, py311, py312}-django42

[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.test_settings

basepython =
py3: python3

django40: DJANGO_SETTINGS_MODULE = tests.test_settingsAA3
django42: DJANGO_SETTINGS_MODULE = tests.test_settingsAA4
deps=
django40: allianceauth<4
django42: allianceauth>=4.0.0
coverage

commands =
pip freeze
coverage run runtests.py
coverage report -m
coverage html
install_command = pip install -e ".[test]" -U {opts} {packages}

commands=
coverage run runtests.py allianceauth_oidc -v 2 --debug-mode
pip list
coverage xml
coverage html
coverage report -m

0 comments on commit babc19d

Please sign in to comment.