mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 21:45:19 +01:00
31 lines
724 B
YAML
31 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=.
|