-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (41 loc) · 1.14 KB
/
tests-unit.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
name: Run unit tests
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'dev_requirements.txt'
- 'pyproject.toml'
push:
branches:
- main
- dev/1.x
jobs:
test:
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.13" ]
os: [ ubuntu, macos, windows ]
name: 'unit test (${{ matrix.os }} - py${{ matrix.python-version }})'
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.pull_request.head.ref }}
- name: Install package
uses: ./.github/actions/install-package
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}-latest
- name: Run tests
uses: ./.github/actions/run-tests
with:
test-directory: unit
report-job: 'test (${{ matrix.os }} - py${{ matrix.python-version }})'
report-suffix: 'unit-${{ matrix.python-version }}-${{ matrix.os }}'