Files
chia-blockchain/.github/workflows/pythonpackage.yml
T
Richard KissandGitHub 433b765aff Use pypi chiapos (#130)
* Use pypi version of chiapos.
* Remove lib/chiapos since we're using from pypi now.
2020-03-27 16:21:29 +09:00

44 lines
1.1 KiB
YAML

name: Python package
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.7, 3.8]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Setup Python environment
uses: actions/setup-python@v1.1.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
brew update && brew install gmp boost openssl || echo ""
sudo apt-get install libboost-all-dev || echo ""
sudo apt-get install libssl-dev || echo ""
sh install.sh
- name: Test vdf
run: |
. .venv/bin/activate
cd lib/chiavdf/fast_vdf
python python_bindings/test_verifier.py
cd ../../../
- name: Lint source with flake8
run: |
./.venv/bin/flake8 src --exclude src/electron-ui/node_modules
- name: Lint source with mypy
run: |
./.venv/bin/mypy src tests
- name: Test blockchain code with pytest
run: |
./.venv/bin/py.test tests -s -v