- changed to use --cleanslate when measuring individual test coverage, #130
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: tests | |
on: | |
push: | |
paths: | |
- src/** | |
- test/** | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-13 ] | |
python: [ '3.10', '3.11', '3.12' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
allow-prereleases: true | |
- name: install dependencies | |
run: | | |
python3 -m pip install pytest pytest-asyncio pytest-mock hypothesis | |
python3 -m pip install . | |
- name: run tests | |
run: | | |
python3 -m pytest |