mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-12 18:14:32 -05:00
38 lines
957 B
YAML
38 lines
957 B
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: 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
|
|
|