Skip to content

Commit

Permalink
Only run on Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Nov 21, 2024
1 parent 1a0c608 commit 5e59eaa
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,30 @@ name: Run tests

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"


steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --all-extras --dev
- uses: actions/checkout@v4

- name: Run tests
# For example, using `pytest`
run: uv run pytest
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --all-extras --dev

- name: Run tests
# For example, using `pytest`
run: uv run pytest

0 comments on commit 5e59eaa

Please sign in to comment.