-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 918 Bytes
/
ci.yml
File metadata and controls
33 lines (28 loc) · 918 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
name: Ubuntu (build and test)
on: [push]
jobs:
Build-And-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.12.10
cache: true
# You are now able to use PDM in your workflow
- name: Install dependencies
run: pdm install
- name: Lint check
run: |
pdm run ruff check .
pdm run ruff check . --select I
- name: Type check
run: |
pdm run typecheck
- name: Style check
run: |
pdm run ruff format . --check
pdm run black . --check
- name: Tests
run: pdm run test