Skip to content

Fix the publish action (#27) #15

Fix the publish action (#27)

Fix the publish action (#27) #15

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Lint and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files
- name: Check Linting
uses: astral-sh/ruff-action@v3
- name: Check Formatting
uses: astral-sh/ruff-action@v3
with:
args: format --check --diff
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Run unit and system tests
run: |
uv run pytest tests/