Skip to content

Commit

Permalink
re-write github action config
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
  • Loading branch information
seapagan committed Sep 8, 2024
1 parent 3fb5981 commit c50ec75
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
workflow_dispatch:

jobs:
build:
test:
name: python
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -17,7 +18,7 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v2
Expand All @@ -26,15 +27,13 @@ jobs:
cache-dependency-glob: "uv.lock"

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

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest tests/
run: uv run -p ${{ matrix.python-version }} pytest tests/

# steps:
# - name: Checkout Repository
Expand Down

0 comments on commit c50ec75

Please sign in to comment.