Skip to content

Commit

Permalink
🐛 let tox create environments, only run it once in github action
Browse files Browse the repository at this point in the history
- local error that env had to be defined by hand
- local package alwasy included if not specified otherwise?

follow latest tox guide: https://tox.wiki/en/4.18.0/user_guide.html
  • Loading branch information
enryH committed Sep 2, 2024
1 parent b818966 commit 9dbec2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox-gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
11 changes: 3 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py39, py310, py311, flake8
envlist = py{39,310,311} flake8

[travis]
python =
Expand All @@ -9,19 +9,14 @@ python =

[testenv:flake8]
basepython = python
skip_install = true
deps = flake8
commands = flake8 acore tests --ignore=E501,W605

[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-e .
pytest
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir}
pytest tests

0 comments on commit 9dbec2a

Please sign in to comment.