-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (44 loc) · 1.21 KB
/
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
---
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 Maxwell G <maxwell@gtmx.me
name: nox
'on':
push:
branches: [main]
pull_request:
branches: [main]
# Run once per week (Thursday at 04:00 UTC)
schedule:
- cron: '0 4 * * 4'
workflow_dispatch:
env:
FORCE_COLOR: "1"
jobs:
nox:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ansible-build-data
strategy:
fail-fast: false
matrix:
include:
- session: lint
python-versions: "3.13"
name: "Run nox ${{ matrix.session }} session"
steps:
- name: Check out ansible-build-data
uses: actions/checkout@v4
with:
path: ansible-build-data
- name: Setup nox
uses: wntrblm/nox@2024.10.09
with:
python-versions: "${{ matrix.python-versions }}"
- name: Set up nox environments
run: |
nox -v -e "${{ matrix.session }}" --install-only
- name: "Run nox -e ${{ matrix.session }}"
run: |
nox -v -e "${{ matrix.session }}" --reuse-existing-virtualenvs --no-install