Skip to content

feat/data api

feat/data api #146

Workflow file for this run

name: Python
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11.0
uses: actions/setup-python@v2
with:
python-version: 3.11.0
- name: Install dependencies
run: |
pip install flake8 pytest-cov
pip install -r requirements.txt
- name: flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: pytest
run: |
source test.sh
pytest --cov=./ --cov-report=xml
env:
SQL_USERNAME: ${{ secrets.SQL_USERNAME }}
SQL_PASSWORD: ${{ secrets.SQL_PASSWORD }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true