Skip to content

Commit

Permalink
Attempt to get tox-gh working
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Sep 26, 2024
1 parent 851bd6c commit f37dbcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
enable-cache: true
- name: "Install dependencies"
run: |
set -x
uv python install ${{ matrix.python-version }}
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "uvx --with tox-uv tox"
run: "uvx --with tox-uv --with tox-gh tox"

- name: Upload coverage data
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ dev = [
"flake8",
"black",
"tox",
"tox-asdf",
"tox-uv",
"doc2dash",
]

Expand Down
7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ looponfailroots =


# Keep docs in sync with docs env and .readthedocs.yml.
[gh-actions]
[gh]
python =
3.8: py38, py38-numpy
3.9: py39, py39-numpy
Expand Down Expand Up @@ -65,7 +65,6 @@ commands = python -m pytest {posargs}
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.8
#install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
Expand All @@ -76,7 +75,6 @@ commands = coverage run -m pytest {posargs}
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.9
#install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
Expand All @@ -87,7 +85,6 @@ commands = coverage run -m pytest {posargs}
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.10
#install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
Expand All @@ -98,7 +95,6 @@ commands = coverage run -m pytest {posargs}
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.11
#install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
Expand All @@ -109,7 +105,6 @@ commands = coverage run -m pytest {posargs}
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
# PYTHONWARNINGS=d and --no-compile below make them visible during the Tox run.
basepython = python3.12
#install_command = pip install --no-compile {opts} {packages}
setenv =
PYTHONWARNINGS=d
extras = {env:TOX_AP_TEST_EXTRAS:tests}
Expand Down

0 comments on commit f37dbcf

Please sign in to comment.