-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (36 loc) · 831 Bytes
/
Copy pathtest.yml
File metadata and controls
37 lines (36 loc) · 831 Bytes
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
# TODO : add test job - using coverage
name: test sources before publish
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
test-fastapi-fastkit-sources:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13" # max
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8" # min
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install -G dev
- name: Run tests
run: pdm run pytest