generated from potassco/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 843 Bytes
/
test.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
name: run CI test
on:
push:
branches: [devel, main, master, wip]
pull_request:
workflow_call:
env:
FORCE_COLOR: "3"
jobs:
build:
name: test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: install requirements
run: python -m pip install nox pre-commit
- name: run pre-commit
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pre-commit run --all --show-diff-on-failure
- name: run tests
run: nox