Files
chia-blockchain/.github/workflows/pythonpackage.yml
T
Mariano SorgenteandGitHub 5c49a2858c Fix sqlite issue on Github CI machine (#87)
* Add a lock and update cbor2
* Support python3, and tests python3 in ci
2020-01-24 20:44:09 +09:00

44 lines
1.1 KiB
YAML

name: Python package
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
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
env:
CHIA_MACHINE_SSH_KEY: ${{ secrets.CHIA_MACHINE_SSH_KEY }}
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< "${CHIA_MACHINE_SSH_KEY}"
git submodule update --init --recursive
brew update && brew install gmp || echo ""
python3 -m venv .venv
. .venv/bin/activate
pip install -e .
pip install -r requirements.txt
- name: Lint with flake8
run: |
./.venv/bin/flake8 src
- name: Lint with mypy
run: |
./.venv/bin/mypy src tests
- name: Test with pytest
run: |
./.venv/bin/py.test tests -s -v