Skip to content

Update github_actions.yml #11

Update github_actions.yml

Update github_actions.yml #11

name: Python_Testing
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Flask pytest pytest-cov pytest-mock
- name: Run tests
run: |
pytest --cov=server tests/unit_tests
coverage report
- name: Check coverage
run: |
coverage report --fail-under=60