-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (28 loc) · 989 Bytes
/
tests.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
name: Tests
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '41 16 * * *' # Every day at 16:41 UTC (to avoid high load at exact hour values).
jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Ensure matrix jobs keep running even if one fails
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install default and test dependencies
run: pdm install --group test --frozen-lockfile
- name: Run unit and doc tests with coverage report
run: pdm run pytest tests/unit tests/doc --cov=src --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}