-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 914 Bytes
/
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
name: Test package
on:
push:
branches: ['main']
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: '3.13'
cache: true
- name: Check lock file
run: pdm lock --check
- name: Install check dependencies
run: pdm install --group check
- name: Run checks
run: pdm run check
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install test dependencies
run: pdm install --group test
- name: Run tests
run: pdm run test