Skip to content

[pre-commit.ci] pre-commit autoupdate #78

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #78

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
tests:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Package
run: |
python -m pip install --upgrade pip
pip install -e .[testing]
- name: Run tests using pytest
run: |
pytest --cov=bda --cov-report xml:./coverage.xml
- name: Run linting
run: |
pre-commit run -a
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
files: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
verbose: true