mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 13:42:33 +01:00
30 lines
730 B
YAML
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=.
|