Skip to content

Commit

Permalink
Switch to tox-uv to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Nov 2, 2024
1 parent e781a46 commit 5ce3608
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,23 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install the latest version of uv
id: setup-uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: "Run tox targets for ${{ matrix.python-version }}"
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
run: uvx --with tox-uv --with tox-gh tox
run: uvx --with tox-uv tox -e py
# env:
# TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
# run: uvx --with tox-uv --with tox-gh tox

- name: Upload coverage data
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 5ce3608

Please sign in to comment.