Make the Documentation #30
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: Coerage Report | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: 0 7 * * 1 # 7 A.M. mon | |
concurrency: | |
group: coverage-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: Coverage | |
runs-on: ubuntu-latest | |
if: "!(contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[ci skip]'))" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: pip | |
cache-dependency-path: '**/pyproject.toml' | |
- name: Install base dependencies | |
run: | | |
python -m pip install --upgrade --quiet pip setuptools | |
- name: Install package dependencies | |
run: pip install -U .[test] | |
- name: Run tests | |
run: python -m coverage run -m unittest discover -p 'test_*.py' -v | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |