Skip to content

2.6

2.6 #172

Workflow file for this run

name: Python Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "${{ matrix.python-version }}"
- name: Install dependencies
run: |
pip install uv
uv venv --python "${{ matrix.python-version }}"
- name: Run tests with coverage
run: |
uv pip install pytest pytest-cov
uv run pytest --cov=wcgw --cov-report=xml --cov-report=term-missing:skip-covered
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
if: success()
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}