Skip to content

Commit 33769fd

Browse files
committed
.github: add a Github Action CI
First time I ever do this, so it's a basic copy paste of their example. Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
1 parent 898a500 commit 33769fd

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: python-bip32
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.5, 3.6, 3.7, 3.8]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Installation (deps and package)
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install flake8 pytest
27+
pip install -r requirements.txt -r tests/requirements.txt
28+
python setup.py install
29+
- name: Linter (flake8)
30+
run: |
31+
flake8 ./bip32/ --count --show-source --statistics --max-line-length=90
32+
- name: Test with pytest
33+
run: |
34+
pytest -vvv

0 commit comments

Comments
 (0)