Skip to content

Move to reqs to pyproject, remove circleCI #182

Move to reqs to pyproject, remove circleCI

Move to reqs to pyproject, remove circleCI #182

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [main, test]
merge_group:
jobs:
pre-commit:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.4.0
- uses: pre-commit/action@v3.0.1
test:
name: Python
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [ 3.9, 3.12 ]
os: [ macos-latest, ubuntu-24.04, windows-latest ]
defaults:
run:
shell: bash
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4.2.2
with:
submodules: true
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}
version: "0.8.15"
- name: Install dependencies
run: |
uv venv
uv pip install -r pyproject.toml --extra test
- name: Run tests
run: |
uv run --no-sync python -m pytest -xv --cov=tszip --cov-report=xml --cov-branch -n2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true