-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (40 loc) · 1.24 KB
/
ci.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 all tests
on:
pull_request:
push:
release:
types: published
schedule:
- cron: 0 0 1 * * # Run once every month
jobs:
run-pytest:
strategy:
fail-fast: false
matrix:
py: [ '3.9', '3.10', '3.11', '3.12' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- name: "Run pytest"
run: |
pdm run pytest
check-typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- run: pdm run mypy --install-types --non-interactive