forked from ibbtco/electrum-dash
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.05 KB
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run tests workflow
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
run_tests:
runs-on: ubuntu-latest
name: Run tests
strategy:
matrix:
python-version: [3.6, 3.7]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install -y libsecp256k1-0
python -m pip install --upgrade pip wheel tox tox-gh-actions flake8
- name: Run flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run tests
run: |
tox
upload_notify_artifact:
runs-on: ubuntu-18.04
if: always()
name: Upload Notify Artifact
steps:
- name: Upload Notify Artifact
uses: zebra-lucky/[email protected]
with:
gh_ctx: ${{ toJson(github) }}