Run coverage
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- python-version: ["3.9", "3.10"]
+ python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
@@ -47,3 +47,10 @@ jobs:
- name: Test with pytest
run: |
python -m pytest
+
+ - name: Run coverage (only Ubuntu/Python 3.10)
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
+ run: |
+ python -m pip install pytest-cov
+ python -m pytest --cov
+ coverage
