Skip to content

Commit

Permalink
Update test runner and GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
plettich committed Dec 4, 2023
1 parent 7e415d1 commit 20a4996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on: [push]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 3
matrix:
python-version: [2.7, 3.5, 3.6]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10]

steps:
- name: Install requirements
Expand Down
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
[tox]
envlist = py27,py35,py36,py37
envlist = py36, py37, py38, py39, py310

[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
-Urtest/requirements.txt
-r test/requirements.txt
pytest-cov
# should we add privacyidea to test/requirements.txt?
privacyidea
# currently this package is missing in privacyIDEAs setup.py
flask-versioned
commands =
# NOTE: you can run any command line tool here - not just tests
python -b -m pytest --cov=authappliance test/

0 comments on commit 20a4996

Please sign in to comment.