Switch to unified view

a b/.github/workflows/test.yaml
1
name: Test
2
3
on:
4
  push:
5
    branches: [main]
6
  pull_request:
7
    branches: [main]
8
  schedule:
9
    - cron: "0 5 1,15 * *"
10
11
concurrency:
12
  group: ${{ github.workflow }}-${{ github.ref }}
13
  cancel-in-progress: true
14
15
jobs:
16
  test:
17
    runs-on: ${{ matrix.os }}
18
    defaults:
19
      run:
20
        shell: bash -e {0} # -e to fail on error
21
22
    strategy:
23
      fail-fast: false
24
      matrix:
25
        include:
26
          - os: ubuntu-latest
27
            python: "3.9"
28
29
    name: ${{ matrix.name }} Python ${{ matrix.python }}
30
31
    env:
32
      OS: ${{ matrix.os }}
33
      PYTHON: ${{ matrix.python }}
34
35
    steps:
36
      - uses: actions/checkout@v4
37
      - name: Set up Python ${{ matrix.python }}
38
        uses: actions/setup-python@v5
39
        with:
40
          python-version: ${{ matrix.python }}
41
          cache: "pip"
42
          cache-dependency-path: "**/pyproject.toml"
43
44
      - name: Set up external packages
45
        if: steps.changed-files-specific.outputs.only_changed != 'true'
46
        uses: ./.github/actions/setup
47
      - name: Install test dependencies
48
        run: |
49
          python -m pip install --upgrade pip wheel
50
      - name: Install dependencies
51
        run: |
52
          pip install ${{ matrix.pip-flags }} ".[dev,tests]"
53
      - name: Test
54
        env:
55
          MPLBACKEND: agg
56
          PLATFORM: ${{ matrix.os }}
57
          DISPLAY: :42
58
        run: |
59
          coverage run -m pytest -v --color=yes
60
      - name: Report coverage
61
        run: |
62
          coverage report
63
      - name: Upload coverage
64
        uses: codecov/codecov-action@v3