Skip to content

Commit 99d8449

Browse files
committed
add testing in actions
1 parent 9e0d0c4 commit 99d8449

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/testing.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python testing
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version:
12+
- "3.9"
13+
- "3.10"
14+
- "3.11"
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install poetry
23+
run: |
24+
python -m pip install --upgrade pip poetry pre-commit
25+
- name: Install dependencies
26+
run: poetry install
27+
- name: Lint code
28+
run: pre-commit run --all-files
29+
- name: Test with pytest
30+
run: pytest -s -vv tests/

0 commit comments

Comments
 (0)