Fixes #8 - Support for simple sequence types #42
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
name: Matrix tests | |
on: | |
push: | |
paths-ignore: | |
- ".github/**" | |
- "README.md" | |
- "pyproject.yml" | |
- ".gitignore" | |
- ".pre-commit-config.yaml" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov | |
- name: Test with pytest | |
run: pytest tests --cov --doctest-modules --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }} | |
path: junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml | |
# always publish test results even with test failures | |
if: ${{ always() }} | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |