-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (69 loc) · 1.94 KB
/
checks.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Pre-build Checks
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12",]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install --no-cache-dir "poetry==1.7.1"
poetry install --no-root --no-interaction --no-ansi
- name: Execute Tests
run: poetry run task tests
- uses: actions/upload-artifact@v3
with:
name: coverage.xml
path: coverage.xml
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.xml
lint:
name: Code Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12",]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install --no-cache-dir "poetry==1.7.1"
poetry install --no-root --no-interaction --no-ansi --with dev
- name: Run ruff
run: poetry run task ruff-lint
- name: Run mypy
run: poetry run task mypy-lint
- name: Run poetry check
run: poetry run task poetry-check
- name: Run pip check
run: poetry run task pip-check