fix(readme): update README example to #14
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: Workflow for pytest and Coverage.py | |
on: [push, pull_request] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
OS: ubuntu-latest | |
PYTHON: '3.10.7' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.10.7 | |
- name: Install Developing Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Generate Coverage Report | |
run: | | |
pip install coverage | |
pip install pytest-cov | |
coverage run --source=fundamentus -m pytest -vv --color=yes | |
coverage report -m | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
files: ./coverage.xml | |
name: codecov-version | |
version: v0.1.0_8880 | |
verbose: true |