-
-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (36 loc) · 918 Bytes
/
quality.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
name: Code quality
on:
push:
branches: [ development, main ]
pull_request:
branches: [ development ]
jobs:
quality:
name: "Code quality"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'poetry'
- name: Install dependencies
run: poetry install
- name: Run mypy
run: >
poetry run
mypy aiospamc
--install-types
--junit-xml output/mypy-tests.xml
--non-interactive
- name: Run interrogate
run: poetry run interrogate
- name: Publish test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: quality-report
path: output/**