blockstream-satellite-api/.github/workflows/test.yml
Blockstream Satellite 9d421771e7 Port the satellite API to python
- Preserve the SQLite database and use SQLAlchemy to wrap db
  interactions.
- Use Alembic for database migrations.
- Organize all the python modules on the new server/ directory.
- Use pytest for unit tests and organize test modules at server/tests/.
2021-07-20 12:28:08 -03:00

30 lines
724 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.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=.