Skip to content

Commit 5cdabb4

Browse files
committed
Add GitHub Actions workflow to run tests
Restrict to Python 3.5 for now as tests fail on later Pythons.
1 parent 19f26b8 commit 5cdabb4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci-build.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build and Test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python: [3.5]
15+
# python: [3.5, 3.6, 3.7, 3.8]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python }}
25+
26+
- name: Install setuptools
27+
run: |
28+
pip install --upgrade setuptools
29+
30+
- name: Install wheel
31+
run: |
32+
pip install wheel
33+
34+
- name: Install nose
35+
run: |
36+
pip install nose
37+
38+
- name: Install package
39+
run: |
40+
python setup.py install
41+
42+
- name: Run tests
43+
run: nosetests --exe

0 commit comments

Comments
 (0)