Handover logger to RenderVersionFile #115
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
--- | |
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to | |
# help make automated releases for this project | |
name: Unittest Python Package | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test-and-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Execute tests | |
run: | | |
pip install .[test] | |
python create_report_dirs.py | |
nose2 --config tests/unittest.cfg | |
- name: Create coverage report | |
run: | | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./reports/coverage/coverage.xml | |
flags: unittests | |
fail_ci_if_error: true | |
# path_to_write_report: ./reports/coverage/codecov_report.txt | |
verbose: true |