Repository navigation
81 lines (81 loc) · 3.03 KB
/
Copy pathcheck.yaml
File metadata and controls
81 lines (81 loc) · 3.03 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
name: 🧪 check
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: "27 8 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: 🧪 test
if: github.event_name != 'schedule' || github.repository == 'tox-dev/python-sbom'
uses: tox-dev/github-workflows/.github/workflows/check.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: read
with:
include: |
[
{"env": "3.15", "python": "3.15"},
{"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.15", "python": "3.15", "os": "windows-2025"},
{"env": "3.11", "python": "3.11", "os": "windows-2025"},
{"env": "3.15", "python": "3.15", "os": "macos-26"},
{"env": "dev"},
{"env": "docs"},
{"env": "fix"},
{"env": "type"},
{"env": "pkg_meta"},
{"env": "example-cibuildwheel", "python": "3.15"},
{"env": "example-flit_core", "python": "3.15"},
{"env": "example-hatchling", "python": "3.15"},
{"env": "example-maturin", "python": "3.15"},
{"env": "example-meson_python", "python": "3.15"},
{"env": "example-pdm_backend", "python": "3.15"},
{"env": "example-poetry_core", "python": "3.15"},
{"env": "example-scikit_build_core", "python": "3.15"},
{"env": "example-setuptools", "python": "3.15"},
{"env": "example-uv_build", "python": "3.15"},
{"env": "example-zipapp", "python": "3.15"},
{"env": "example-delocate", "python": "3.15", "os": "macos-26"}
]
release:
name: 🏷️ Release dry run
uses: $/.github/workflows/prepare-release.yaml
permissions:
contents: read
pull-requests: read
with:
dry-run: true
build:
# the release's own build, with the hashed build requirements the lock pins, so a pull request that would fail it
# fails here instead of after the release is tagged
name: 🏗️ Release build
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: read
hooks:
name: 🧹 Hooks under the cooldown
uses: tox-dev/github-workflows/.github/workflows/cooled-hooks.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: read
gate:
name: 🚦 ${{ github.event_name == 'pull_request' && 'Required checks pass' || 'Non-PR checks pass' }}
if: ${{ !cancelled() }} # codespell:ignore cancelled
needs: [test, release, build, hooks]
runs-on: ubuntu-26.04
permissions: {}
steps:
- name: 🚦 Require all needed jobs to pass
uses: tox-dev/github-workflows/required-checks@6.8.4
with:
needs: ${{ toJSON(needs) }}