-
-
Notifications
You must be signed in to change notification settings - Fork 12
68 lines (64 loc) · 1.74 KB
/
ci.yml
File metadata and controls
68 lines (64 loc) · 1.74 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci:
if: ${{ !cancelled() && ! failure() }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up PDM
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4.4
with:
cache: true
python-version: ${{ matrix.python-version }}
version: 2.25.4
cache-dependency-path: |
./pdm.dev.lock
./pdm.lock
- run: env | sort
- run: make prerequisites
- run: make dev
- run: make lint test doc build
strategy:
matrix:
os:
# renovate: github-runner
- macos-14
# renovate: github-runner
- ubuntu-24.04
# renovate: github-runner
- windows-2025
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
consistency:
if: ${{ !cancelled() && ! failure() }}
runs-on: ubuntu-24.04
steps:
- run: env | sort
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Git
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
- run: pipx install copier==9.8.0
- run: make template-build
- run: git diff
- run: git status --porcelain
- run: test -z "$(git status --porcelain)"