blockstream-satellite-api/.github/workflows/test.yml

31 lines
724 B
YAML
Raw Normal View History

name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7.5'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yapf pytest pytest-cov
pip install -r server/requirements.txt
pip install -r server/test_requirements.txt
- name: Lint with flake8
run: |
flake8 .
- name: Check formatting
run: |
yapf --diff --recursive --verbose server/
- name: Test with pytest
env:
ENV: test
run: |
cd server/ && python -m pytest --cov=.