Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
distributedstatemachine committed Dec 9, 2024
1 parent a52d433 commit 8cb0f73
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ name: CI
on: [push, pull_request]

jobs:
lint:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up UV
uses: astral-sh/setup-uv@v4
with:
python-version: '3.11'

- name: Install dependencies
run: uv sync --extra all

- name: Run Ruff Lint
uses: astral-sh/ruff-action@v1
with:
Expand All @@ -18,22 +26,5 @@ jobs:
with:
args: format --check

test:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up UV
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --extra all

- name: Run tests
- name: Run Tests
run: uv run --frozen pytest

0 comments on commit 8cb0f73

Please sign in to comment.