Clarified error handling slightly, made sure to include a syntax erro… #80
Workflow file for this run
This file contains 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
# | |
# This workflow will install the package and run the unittests. | |
# | |
name: PyTest tests | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Pytest ${{ matrix.python-version }}, ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
include: | |
- os: "windows-latest" | |
python-version: "3.11" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[test] | |
- name: Test with pytest | |
run: | | |
pytest --cov=src/ --cov-report=term | |
- name: Upload coverage reports to Codecov | |
if: ${{matrix.python-version}} == '3.10' && ${{matrix.os}} == 'ubuntu-latest' | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |