Skip to content

Commit

Permalink
bump tox>=4.5.1, fix setenv in tox.ini
Browse files Browse the repository at this point in the history
setenv defined explicitly until regression fixed in tox:
* tox-dev/tox#2972
* tox-dev/tox#2872
  • Loading branch information
mr-mixas committed May 12, 2023
1 parent 44f770a commit 644835b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,18 @@ jobs:

- name: Install dependencies
run: |
pip install --quiet --upgrade pip setuptools
pip install --quiet --upgrade tox==3.27.0
pip install --quiet --upgrade pip setuptools tox>=4.5.1
- name: Run test without coverage
if: ${{ matrix.tox-env != 'coverage' }}
run: |
tox -e ${{ matrix.tox-env }}
tox run -e ${{ matrix.tox-env }}
- name: Run tests with coverage
if: ${{ matrix.tox-env == 'coverage' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install --quiet --upgrade coveralls
tox -e coverage
tox run -e coverage
coveralls --service=github
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ deps =
coverage

setenv =
{[testenv:essential]setenv}
PYTHONHASHSEED = 1

[testenv:linters]
commands =
Expand All @@ -47,7 +47,7 @@ deps =
{[testenv:essential]deps}

setenv =
{[testenv:essential]setenv}
PYTHONHASHSEED = 1

[darglint]
docstring_style=google
Expand Down

0 comments on commit 644835b

Please sign in to comment.