aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yaml
blob: 9b2c37705e719cab9b96ba7fb1c9fed01ac66894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test

on: [push, pull_request]

jobs:
  test:
    name: Run the test suite
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - 3.7
          - 3.8
          - 3.9
          - '3.10'
          - '3.11'
    steps:
      - name: Check out the repo
        uses: actions/checkout@v3

      - name: Install poetry
        run: pipx install poetry

      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          cache: 'poetry'

      - name: Install dependencies
        run: poetry install --without lint

      - name: Run tests
        run: poetry run task test