a b/.github/workflows/test-examples.yml
1
name: Test examples
2
3
on:
4
  push:
5
    branches: [main]
6
  pull_request:
7
    branches: [main]
8
9
concurrency:
10
  group: ${{ github.workflow }}-${{ github.ref }}
11
  cancel-in-progress: true
12
13
jobs:
14
  test:
15
    runs-on: ${{ matrix.os }}
16
    strategy:
17
      fail-fast: false
18
      matrix:
19
        os: [ubuntu-latest]
20
        python: ["3.10"]
21
22
    steps:
23
      - uses: actions/checkout@v3
24
        with:
25
          submodules: recursive
26
      - name: Set up Python ${{ matrix.python }}
27
        uses: actions/setup-python@v4
28
        with:
29
          python-version: ${{ matrix.python }}
30
31
      - name: Install pip dependencies
32
        run: |
33
          python -m pip install --upgrade pip
34
          pip install tox
35
      - name: Test examples
36
        env:
37
          MPLBACKEND: agg
38
          PLATFORM: ${{ matrix.os }}
39
          DISPLAY: :42
40
        run: |
41
          tox -e examples-docs