-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 940 Bytes
/
qa.yml
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
35
36
37
38
#file: noinspection YAMLSchemaValidation
name: Run QA (test, lint, type check)
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
qa:
env:
commitmsg: ${{ github.event.head_commit.message }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.5"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: |
poetry install
- name: Unit tests
run: |
poetry run pytest
- name: Linting
run: |
poetry run flake8 impresso tests
- name: Type checking
run: |
poetry run mypy -p impresso -p tests