Skip to content

Point to V2 API (#69) #234

Point to V2 API (#69)

Point to V2 API (#69) #234

Workflow file for this run

---
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-format:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv --group
run: pip install uv==0.5.8
- name: Sync dependencies with uv
run: uv sync --all-extras
- name: Run ruff for linting
run: uv run ruff check .
- name: Run Pre-commit hooks
uses: pre-commit/[email protected]
with:
extra_args: --verbose --all-files --config=.pre-commit-config.yaml
type-checking:
name: Type Checking
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.9', '3.10', '3.11', '3.12']
folder: [.]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: Install uv
run: pip install uv==0.5.8
- name: Sync dependencies with uv
run: uv sync --all-extras
- name: Run mypy
run: uv run mypy --config-file=./mypy.ini --warn-unused-ignores --python-version ${{ matrix.version }} .
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install uv
run: pip install uv==0.5.8
- name: Sync dependencies with uv
run: uv sync --all-extras
- name: Run Unit Tests
run: make run_unit_tests