Skip to content

Commit

Permalink
Fix test coverage upload (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkim0 authored Dec 18, 2023
1 parent acb6d06 commit 55a8cff
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: PopV

on:
Expand Down Expand Up @@ -32,6 +29,8 @@ jobs:
- os: ubuntu-latest
python: "3.11"

name: ${{ matrix.name }} Python ${{ matrix.python }}

env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
Expand All @@ -44,19 +43,26 @@ jobs:
python-version: ${{ matrix.python }}
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

- name: Install test dependencies
run: |
python -m pip install --upgrade pip wheel
- name: Install dependencies
run: |
pip install pytest-cov
pip install ${{ matrix.pip-flags }} ".[dev]"
pip install ${{ matrix.pip-flags }} ".[dev,test]"
- name: Test
env:
MPLBACKEND: agg
PLATFORM: ${{ matrix.os }}
DISPLAY: :42
run: |
pytest -v --cov --color=yes
coverage run -m pytest -v --color=yes
- name: Report coverage
run: |
coverage report
- name: Upload coverage
uses: codecov/codecov-action@v3

0 comments on commit 55a8cff

Please sign in to comment.