-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 967 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
38
39
40
41
name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest]
fail-fast: false # Continue running jobs even if one fails
steps:
- name: Set up Docker (macOS)
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
brew install colima docker
brew services start colima
- name: Set up PDM
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4.1
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.17
- name: Install dependencies
run: |
pdm sync --dev
- name: Run Tests
run: |
pdm run --verbose pytest tests