Skip to content

Commit e9bd176

Browse files
committed
Switching to github actions for tests
1 parent bc52e5b commit e9bd176

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: 'Tests'
3+
4+
on:
5+
push:
6+
7+
pull_request:
8+
types: [opened, synchronize] #labeled, assigned]
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [2.7, 3.7, 3.8] # 2.7,
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@main
19+
with:
20+
submodules: recursive
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: Test with pytest
30+
run: |
31+
pip install -e .
32+
python -m unittest discover -v

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)