Skip to content

Commit

Permalink
Add matrix example for python-version (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Nov 28, 2024
1 parent ee4fa33 commit 26ddfef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@ This will override any python version specifications in `pyproject.toml` and `.p
python-version: "3.12"
```

You can combine this with a matrix to test multiple python versions:

```yaml
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
- name: Test with python ${{ matrix.python-version }}
run: uv run --frozen pytest
```

### Validate checksum

You can specify a checksum to validate the downloaded executable. Checksums up to the default version
Expand Down

0 comments on commit 26ddfef

Please sign in to comment.