Skip to content

Commit

Permalink
TST: migrate from tox-gh-actions to tox-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Oct 29, 2024
1 parent f3b934d commit 45c2d57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test
run: tox -vvv
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
- name: Install tox
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh
- name: Install Python
if: matrix.python-version != '3.13'
run: uv python install --python-preference only-managed ${{ matrix.python-version }}
- name: Setup test suite
run: tox run -vv --notest --skip-missing-interpreters false
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
- name: Run test suite
run: tox run
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ isolated_build = True
requires =
tox-uv # for oldest dependency testing

[gh-actions]
[gh]
python =
3.9: py39, py39-docs, py39-dependencies, py39-versions, py39-unyt-module-test-function
3.10: py310
3.11: py311
3.12: py312
3.9 = py39, py39-docs, py39-dependencies, py39-versions, py39-unyt-module-test-function
3.10 = py310
3.11 = py311
3.12 = py312

[testenv]
depends = begin
Expand Down

0 comments on commit 45c2d57

Please sign in to comment.