-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (39 loc) · 1.08 KB
/
Copy pathpython.yml
File metadata and controls
41 lines (39 loc) · 1.08 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
name: Python package
on:
push:
branches: [master]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install
run: pip install .[test]
- name: Test
run: tox
continue-on-error: true
# - name: Get Test Coverage
# uses: orgoro/coverage@v3.2
# with:
# coverageFile: coverage.xml
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Test Coverage
uses: insightsengineering/coverage-action@v2
# Coverage should be the same for each python version, just pick one
if: matrix.python-version == '3.12'
with:
path: coverage.xml
publish: true
diff: true
diff-branch: master
togglable-report: true