Skip to content

Commit

Permalink
Upload coverage report only for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Oct 29, 2023
1 parent 260d9e3 commit 7165a02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-major-version: [3]
python-minor-version: [8, 9, 10, 11, 12]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-major-version }}.${{ matrix.python-minor-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-major-version }}.${{ matrix.python-minor-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
run: >-
coverage run -m pytest -v .
- name: Check coverage
- name: Report coverage
run: |
coverage report
coverage html
- name: Install smokeshow and upload coverage
if: ${{ matrix.python-minor-version == 8 }}
run: |
pip install smokeshow
smokeshow upload htmlcov/index.html

0 comments on commit 7165a02

Please sign in to comment.