Skip to content

Commit 014320b

Browse files
authored
Add github workflows for running tests on multiple python versions (#23)
1 parent f8b6d55 commit 014320b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
7+
strategy:
8+
matrix:
9+
python-version: [3.7, 3.8, "3.10"]
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install Python ${{ matrix.python-version }} dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install .
21+
- name: Run pytest
22+
run: pytest

0 commit comments

Comments
 (0)