-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (52 loc) · 1.39 KB
/
test.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
name: test-workflow-name
run-name: test workflow run name
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
test-job-identifier:
name: test job name
strategy:
fail-fast: false
matrix:
runner-platform:
- macos-latest
- ubuntu-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
max-parallel: 2
runs-on: ${{ matrix.runner-platform }}
steps:
- name: checkout commit
uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
check-latest: true
architecture: x64
cache: pip
- name: run unit tests on python ${{ matrix.python-version }} in runner ${{ matrix.runner-platform }}
uses: ./.github/actions/nox-sessions-action-identifier
with:
session-name-input-identifier: pytest
python-version-input-identifier: ${{ matrix.python-version }}
- name: upload coverage reports
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage_xml_report.xml
flags: ${{ matrix.python-version }}