-
Notifications
You must be signed in to change notification settings - Fork 295
56 lines (50 loc) · 1.43 KB
/
check.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Check Scripts
on:
push:
branches:
- main
pull_request:
jobs:
correctly-generated:
name: "are correctly generated"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install nox
- run: nox -s generate
- name: Check regenerated scripts vs what is generated by automation.
run: git diff --exit-code
work-as-advertised:
name: "work as advertised"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install nox
# Install supported Python versions. Keep in sync with noxfile.py as
# much as possible, however, GitHub Actions eventually drops support
# for EOL Python versions, at which point we can't test them in CI.
- uses: actions/setup-python@v5
with:
python-version: "3.7"
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/setup-python@v5
with:
python-version: "3.13-dev"
# Check that the scripts work.
- run: nox -s check --no-error-on-missing-interpreters