Skip to content

Commit cc751ba

Browse files
committed
Change to github CI
1 parent 95d06b9 commit cc751ba

File tree

2 files changed

+63
-37
lines changed

2 files changed

+63
-37
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Continous integration
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- develop
8+
- master
9+
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-20.04
14+
strategy:
15+
matrix:
16+
python-version:
17+
- 3.6
18+
steps:
19+
- uses: actions/[email protected]
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
- name: Install tox
23+
run: pip install tox
24+
- name: Install isal
25+
run: apt install libisal-dev
26+
- name: Lint
27+
run: tox -e lint
28+
docs:
29+
needs: lint
30+
runs-on: ubuntu-20.04
31+
steps:
32+
- uses: actions/[email protected]
33+
- name: Set up Python ${{ matrix.python-version }}
34+
uses: actions/setup-python@v2
35+
- name: Install tox
36+
run: pip install tox
37+
- name: Install isal
38+
run: apt install libisal-dev
39+
- name: Build docs
40+
run: tox -e docs
41+
test:
42+
runs-on: ubuntu-20.04
43+
strategy:
44+
matrix:
45+
python-version:
46+
- 3.6
47+
- 3.7
48+
- 3.8
49+
- 3.9
50+
needs: lint
51+
steps:
52+
- uses: actions/[email protected]
53+
- name: Set up Python ${{ matrix.python-version }}
54+
uses: actions/setup-python@v2
55+
- name: Install tox
56+
run: pip install tox
57+
- name: Install isal
58+
run: apt install libisal-dev
59+
- name: Run tests
60+
run: tox -e py3
61+
- name: Upload coverage report
62+
if: ${{ matrix.python-version == 3.6 }} # Only upload coverage once
63+
uses: codecov/codecov-action@v1

.travis.yml

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

0 commit comments

Comments
 (0)