blockstream-satellite-api/.github/workflows/test.yml
2023-05-23 12:36:34 -03:00

30 lines
730 B
YAML

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.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 "yapf>=0.33" 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=.