Merge pull request #32 from andreped/andreped-patch-1 #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Training | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
pip install flake8 pytest-cov | |
pip install -r requirements.txt | |
- name: Run tests and collect coverage | |
run: pytest --cov=dss/ tests/ | |
- name: Lint with flake8 | |
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 |