Skip to content

Commit 3ae86c6

Browse files
committed
Add test workflow (#1)
1 parent 53499b1 commit 3ae86c6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test pipeline
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ['3.7', '3.8', '3.9', '3.10']
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
pip install poetry
22+
poetry install --with test
23+
- name: Run tests
24+
run: |
25+
source $(poetry env info -p)/bin/activate
26+
pytest

0 commit comments

Comments
 (0)