aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yaml
blob: 3611ff875013f3b055bd3bccf011cba5cad5e594 (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
name: CI

on: [push, pull_request]

jobs:
  lint-and-test:
    name: Run linters and the test suite
    runs-on: ubuntu-latest
    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: '3.11'
          cache: 'poetry'

      - name: Install dependencies
        run: poetry install

      - name: Run linters
        run: poetry run task lint

      - name: Run tests
        run: poetry run task test