Skip to content

Commit

Permalink
add python CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guzmanmichael committed Jan 10, 2025
1 parent 27ffb49 commit e6dfea5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Python CI

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.5.16"

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

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

- name: Run mypy
run: uv run mypy src

- name: Run ruff check
run: uv run ruff check

0 comments on commit e6dfea5

Please sign in to comment.