Skip to content

Github workflow tweaks #32

Github workflow tweaks

Github workflow tweaks #32

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run PyTest
on:
push:
branches:
- main
pull_request:
jobs:
run_pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Editable mode install
run: |
python -m pip install uv
uv pip install --system pytest pytest-cov pytest-html
uv pip install --system -e .
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=html --html=pytest_report.html --self-contained-html
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:

Check failure on line 36 in .github/workflows/pytest.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pytest.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}