refactor: some more code refactoring #188
Workflow file for this run
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: CI | |
on: [push] | |
jobs: | |
python-tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- id: cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install test dependencies | |
run: pip install codecov && pip install -r requirements.txt -r test_requirements.txt | |
- name: Tests | |
run: tox | |
- name: Collect coverage info | |
run: coverage xml | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml |