Skip to content

feat: hyperlink coverage badge #9

feat: hyperlink coverage badge

feat: hyperlink coverage badge #9

Workflow file for this run

name: Unit Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Environment
run: |
sudo apt update -y
sudo apt upgrade -y
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update -y
sudo apt install python3.13 -y
alias python=python3.13
alias pip='python3.13 -m pip'
pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=hw2_debugging --cov-report=xml --cov-report=html
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}