Skip to content

chore: update labeler.yml (#119) #489

chore: update labeler.yml (#119)

chore: update labeler.yml (#119) #489

Workflow file for this run

name: Test
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
shell: bash -e {0}
jobs:
check:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run pytest and capture output
run: |
pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}