Skip to content

Commit 374e224

Browse files
committed
Create test-lint.yaml
1 parent 526bea6 commit 374e224

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/test-lint.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Python Test and Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Python Test and Lint
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version:
19+
- '3.9'
20+
- '3.10'
21+
- '3.11'
22+
- '3.12'
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install Poetry
34+
run: |
35+
curl -sSL https://install.python-poetry.org | python3 -
36+
37+
- name: Install dependencies
38+
run: poetry install
39+
40+
- name: Run pytest
41+
run: poetry run pytest
42+
43+
- name: Run ruff
44+
run: poetry run ruff check --output-format=github
45+
continue-on-error: true

0 commit comments

Comments
 (0)