-
Notifications
You must be signed in to change notification settings - Fork 505
50 lines (48 loc) · 1.5 KB
/
reusable-nox.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
---
name: nox
"on":
workflow_call:
jobs:
nox:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Inputs:
# session: name of session
# python-versions: comma-separated list of Python versions to install
# extra-args (optional): extra arguments to pass to nox session.
- session: static
python-versions: "3.11"
- session: formatters_check
python-versions: "3.11"
- session: typing
python-versions: "3.11"
- session: spelling
python-versions: "3.11"
- session: "checkers(rstcheck)"
python-versions: "3.11"
- session: "checkers(docs-build)"
python-versions: "3.11"
- session: "actionlint"
python-versions: "3.11"
- session: "pip-compile"
extra-args: "--check"
python-versions: "3.11"
name: "Run nox ${{ matrix.session }} session"
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup nox
uses: wntrblm/nox@2024.10.09
with:
python-versions: "${{ matrix.python-versions }}"
- name: Graft ansible-core
run: |
nox -e clone-core
- name: "Run nox -e ${{ matrix.session }}"
run: |
# Using GHA expression interpolation is fine here,
# as we control all the inputs.
nox -e "${{ matrix.session }}" -- ${{ matrix.extra-args }}