Repository navigation
89 lines (89 loc) · 2.77 KB
/
Copy pathcheck.yaml
File metadata and controls
89 lines (89 loc) · 2.77 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: 🧪 check
on:
workflow_dispatch:
push:
branches: ["main"]
tags-ignore: ["**"]
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: "47 8 * * *"
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: 🧪 Test
uses: tox-dev/github-workflows/.github/workflows/check.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: read
with:
include: |
[
{"env": "3.15"},
{"env": "3.15t", "python": "3.15t"},
{"env": "3.14", "python": "3.14"},
{"env": "3.13", "python": "3.13"},
{"env": "3.12", "python": "3.12"},
{"env": "3.11", "python": "3.11"},
{"env": "3.10", "python": "3.10"},
{"env": "3.9", "python": "3.9"},
{"env": "type-3.9"},
{"env": "type-3.15"},
{"env": "dev"},
{"env": "pkg_meta"}
]
old-target:
name: 🧪 Test on old target
runs-on: ubuntu-26.04
steps:
- name: 📥 Check out code
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: 🐍 Install uv
uses: astral-sh/setup-uv@v10.3.3
with:
version: latest-known
python-version: "3.15"
enable-cache: false
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🏗️ Build the wheel
run: uv build --wheel --out-dir dist .
- parallel:
- name: 🧪 Discover Python 3.6
run: tasks/old_target_check.sh 3.6 discover
- name: 🧪 Discover Python 3.7
run: tasks/old_target_check.sh 3.7 discover
- name: 🧪 Reject Python 3.5
run: tasks/old_target_check.sh 3.5 rejected
- name: 🧪 Reject Python 2.7
run: tasks/old_target_check.sh 2.7 rejected
release:
name: 🏷️ Release dry run
uses: $/.github/workflows/prepare-release.yaml
permissions:
contents: read
pull-requests: read
with:
dry-run: true
hooks:
name: 🧹 Hooks under the cooldown
uses: tox-dev/github-workflows/.github/workflows/cooled-hooks.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: read
gate:
name: 🚦 ${{ github.event_name == 'pull_request' && 'Required checks pass' || 'Non-PR checks pass' }}
if: ${{ !cancelled() }} # codespell:ignore cancelled
needs: [test, old-target, release, hooks]
runs-on: ubuntu-26.04
permissions: {}
steps:
- name: 🚦 Require all needed jobs to pass
uses: tox-dev/github-workflows/required-checks@6.8.0
with:
needs: ${{ toJSON(needs) }}