-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 861 Bytes
/
ci.yml
File metadata and controls
35 lines (32 loc) · 861 Bytes
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
name: CI
on: push
env:
PYTHON_VERSION: "3.10"
jobs:
linters:
name: "${{ matrix.linter }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
linter: ["isort", "black", "mypy", "flake8"]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup project
uses: ./.github/actions/setup-project
- name: Add problem matcher
run: echo "::add-matcher::.github/${{ matrix.linter }}-problem-matcher.json"
- name: Run ${{ matrix.linter }}
run: poetry run make ${{ matrix.linter }}
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup project
uses: ./.github/actions/setup-project
- name: Run pytest
run: poetry run pytest -v