-
Notifications
You must be signed in to change notification settings - Fork 100
79 lines (64 loc) · 2.05 KB
/
tester.yml
File metadata and controls
79 lines (64 loc) · 2.05 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "Testing Pull Request"
on:
pull_request:
branches:
- "master"
- "dev"
- "0.3"
jobs:
unittests: #################################################################
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[test]
- name: Test with pytest
run: |
python3 -m pytest
linter: ####################################################################
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Black formatter (check mode)
uses: psf/black@stable
with:
src: "./pina"
testdocs: ##################################################################
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
run: python3 -m pip install .[doc]
- name: Build Documentation
run: |
make html SPHINXOPTS+='-W'
working-directory: docs/
coverage: ##################################################################
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[test]
- name: Generate coverage report
run: |
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
- name: Produce the coverage report
uses: insightsengineering/coverage-action@v2
with:
path: ./cobertura.xml
threshold: 80.123
fail: true
publish: true
coverage-summary-title: "Code Coverage Summary"