Skip to content

Commit 2397712

Browse files
committed
Add github action for tests and linting
1 parent 6211a10 commit 2397712

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/tests.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
on: push
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-20.04
6+
strategy:
7+
matrix:
8+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
9+
name: Python ${{ matrix.python-version }}
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python ${{ matrix.python-version }}
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install Nox
17+
run: pip install nox==2024.03.02
18+
- name: Run tests
19+
run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}"
20+
21+
lint:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Python 3.9
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.9
29+
- name: Install Nox
30+
run: pip install nox==2024.03.02
31+
- name: Lint
32+
run: nox --non-interactive --error-on-missing-interpreter --session "lint"

0 commit comments

Comments
 (0)