Skip to content

Commit d934399

Browse files
committed
build: introduce GitHub actions
1 parent 11eedc8 commit d934399

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on: [push, pull_request]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10-dev", "pypy-3.7"]
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: Install package
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install .
27+
- name: Run test
28+
run: |
29+
python tests/test_mnemonic.py

.github/workflows/style-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check style and dist build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check_style:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install --upgrade black flake8 wheel mypy
20+
- name: Check style
21+
run: make style_check
22+
- name: Check dist
23+
run: make dist

0 commit comments

Comments
 (0)