Skip to content

Commit 727acc4

Browse files
authored
Enable CI
Experiment with GitHub Actions as a CI for linting, formatting and testing.
1 parent 5437e0e commit 727acc4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
paths:
6+
- 'python/**'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 4
14+
matrix:
15+
python-version: [3.6, 3.7]
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
make dev
26+
working-directory: ./python/
27+
- name: Formatting and Linting
28+
run: |
29+
make lint
30+
working-directory: ./python/
31+
- name: Test with pytest
32+
run: |
33+
make test
34+
working-directory: ./python/

0 commit comments

Comments
 (0)