Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu authored Feb 6, 2025
1 parent 9741189 commit ab2e2da
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
branches: [master]

jobs:
build:
test:
name: Test with tox
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -18,17 +19,27 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 2

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

- name: Install dependencies
run: |
pip install uv tox tox-gh-actions tox-uv
pip install uv tox tox-uv
- name: Cache tox environments
uses: actions/cache@v4
with:
path: .tox
key: tox-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('tox.ini', 'requirements.txt', 'requirements-test.txt') }}
restore-keys: |
tox-${{ runner.os }}-${{ matrix.python-version }}-
tox-${{ runner.os }}-
- name: Test with tox
run: tox
run: |
tox -p auto

0 comments on commit ab2e2da

Please sign in to comment.