-
-
Notifications
You must be signed in to change notification settings - Fork 63
29 lines (29 loc) · 908 Bytes
/
Copy pathnox.yml
File metadata and controls
29 lines (29 loc) · 908 Bytes
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
name: nox
# Run on pushes to the long-lived branches and on pull requests. Restricting
# `push` to main/release means a push to a feature branch with an open PR only
# triggers the `pull_request` run (not also a `push` run), so a PR gets a single
# run per push instead of two.
on:
push:
branches:
- main
- release
pull_request:
jobs:
nox:
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: ./python
steps:
- uses: actions/checkout@v4
with:
submodules: true
# python/tetra3 -> PiFinder/tetra3/tetra3 is untracked (see ADR 0035),
# and `import tetra3` resolves the package through it.
- run: ln -sfn PiFinder/tetra3/tetra3 tetra3
- uses: wntrblm/nox@2024.04.15
with:
python-versions: "3.9"
- run: nox -s lint format type_hints smoke_tests unit_tests ui_tests