Point to V2 API (#69) #234
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |