-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.37 KB
/
ci.yml
File metadata and controls
59 lines (46 loc) · 1.37 KB
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
name: CI
on:
push:
branches:
- main
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --with docs
- name: Run strict Swagger coverage gate
run: make swagger-coverage
- name: Run quality gate
run: make check
- name: Run docs strict gate
run: make docs-strict
- name: Run qa-docs (pydocstyle + interrogate)
run: make qa-docs
- name: Interrogate diff gate (changed modules vs baseline)
run: poetry run python scripts/check_interrogate_gate.py --base-ref origin/main
- name: Collect coverage report
run: |
poetry run coverage run -m pytest
poetry run coverage report
poetry run coverage xml
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
file: ./coverage.xml
github-token: ${{ secrets.GITHUB_TOKEN }}