Skip to content

Commit 0048e61

Browse files
authored
Test workflow (#44)
1 parent 142c1d1 commit 0048e61

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Tests
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: sksat/[email protected]
19+
- name: Run formatting check
20+
run: rye fmt --check
21+
- name: Run linters
22+
run: rye lint
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
python-version:
29+
- "3.8"
30+
- "3.9"
31+
- "3.10"
32+
- "3.11"
33+
- "3.12"
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: sksat/[email protected]
38+
- name: Install Python ${{ matrix.python-version }}
39+
run: rye pin ${{ matrix.python-version }}
40+
- name: Run tests
41+
run: rye test

0 commit comments

Comments
 (0)