Skip to content

Commit c938cf8

Browse files
committed
Run tests via GitHub Actions
1 parent 94fcd3f commit c938cf8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/test.yml

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

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ envlist =
55
py39-ipython7
66
; ipython73 adds compatibility with py38+
77

8+
[gh-actions]
9+
python =
10+
3.6: py36
11+
3.7: py37
12+
3.8: py38
13+
3.9: py39
14+
815
[testenv]
916
deps =
1017
-rrequirements/test.txt

0 commit comments

Comments
 (0)