Skip to content

Commit 88db2cd

Browse files
committed
Add test/lint CI
1 parent 6b4f894 commit 88db2cd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.8, 3.9, 3.10]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
cache: 'poetry'
21+
22+
- name: Install Poetry
23+
uses: snok/install-poetry@v1
24+
25+
- name: Install Dependencies
26+
run: poetry install
27+
28+
- name: Lint
29+
run: poetry run black . --check
30+
31+
- name: Test
32+
run: poetry run pytest tests/ -v

0 commit comments

Comments
 (0)