Skip to content

Commit 0513cf7

Browse files
committed
Add poetry, tests action
1 parent 7099ff8 commit 0513cf7

File tree

5 files changed

+749
-46
lines changed

5 files changed

+749
-46
lines changed

.github/workflows/python-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: [2.7, 3.8, 3.9, 3.10, 3.11]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install poetry
27+
poetry env use system
28+
poetry install --no-root
29+
- name: Test with pytest
30+
run: |
31+
poetry run pytest

0 commit comments

Comments
 (0)