Skip to content

Commit

Permalink
Adapt to tox 4
Browse files Browse the repository at this point in the history
It seems tox 4 does not install console scripts wen skipsdist = True is
set. This removes the option so that we can use the stestr command in
tests.

Also, the allowlist_externals option was added in tox 3.18.0 so
the minimum version should be fixed accordingly.
  • Loading branch information
kajinamit committed Feb 8, 2024
1 parent 3862766 commit 238aee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}
- name: Install Deps
run: python -m pip install -U 'tox<4' setuptools virtualenv wheel
run: python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
run: tox -e py
if: runner.os != 'macOS'
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
- name: Install Deps
run: python -m pip install -U 'tox<4'
run: python -m pip install -U tox
- name: Run lint
run: tox -epep8
cover:
Expand All @@ -79,7 +79,7 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
- name: Install Deps
run: python -m pip install -U 'tox<4'
run: python -m pip install -U tox
- name: Run coverxml
run: tox -ecoverxml
- name: codecov
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install Deps
run: python -m pip install -U 'tox<4'
run: python -m pip install -U tox
- name: Build Docs
run: tox -edocs
- uses: actions/upload-artifact@v3
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
minversion = 1.6
minversion = 3.18.0
envlist = py312,py311,py310,py39,py38,pep8
skipsdist = True

[testenv]
usedevelop = True
Expand Down

0 comments on commit 238aee8

Please sign in to comment.