Skip to content

Commit 8ea9e24

Browse files
committed
ci: add github actions
1 parent 5fa0830 commit 8ea9e24

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
tests:
11+
name: ${{ matrix.name }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- {name: '3.12', python: '3.12', os: ubuntu-latest}
18+
- {name: '3.11', python: '3.11', os: ubuntu-latest}
19+
- {name: '3.10', python: '3.10', os: ubuntu-latest}
20+
- {name: '3.9', python: '3.9', os: ubuntu-latest}
21+
- {name: '3.8', python: '3.8', os: ubuntu-latest}
22+
- {name: '3.7', python: '3.7', os: ubuntu-latest}
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Setup PDM
26+
uses: pdm-project/setup-pdm@v3
27+
with:
28+
python-version: ${{ matrix.python }}
29+
cache: true
30+
- name: Install dependencies
31+
run: pdm install -Gtest
32+
- name: Run tests
33+
run: pdm run test

0 commit comments

Comments
 (0)