-
Notifications
You must be signed in to change notification settings - Fork 305
45 lines (39 loc) · 1.01 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
name: Check Scripts
on:
push:
branches:
- main
pull_request:
jobs:
correctly-generated:
name: "are correctly generated"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- 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@v3
- uses: actions/setup-python@v4
- run: pip install nox
# Install supported Python versions
- uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/setup-python@v4
with:
python-version: "3.10"
# Check that the scripts work.
- run: nox -s check --no-error-on-missing-interpreters