diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ce31d3..493201d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -32,6 +29,8 @@ jobs: - os: ubuntu-latest python: "3.11" + name: ${{ matrix.name }} Python ${{ matrix.python }} + env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python }} @@ -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