feat: Add repo structure to output markdown #12
Workflow file for this run
This file contains hidden or 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: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.10 with uv | |
uses: ./.github/actions/setup-python-with-uv | |
with: | |
python-version: "3.10" | |
- name: Build coverage file | |
run: | | |
uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=repo_context --cov-branch tests/ | tee pytest-coverage.txt | |
- name: Pytest coverage comment | |
uses: MishaKav/pytest-coverage-comment@v1 | |
with: | |
pytest-coverage-path: ./pytest-coverage.txt | |
junitxml-path: ./pytest.xml | |
- name: Creating coverage folder | |
run: mkdir -p coverage | |
- name: Coverage Bagdge | |
uses: tj-actions/coverage-badge-py@v2 | |
with: | |
output: coverage/coverage.svg | |
- name: Publish coverage report to coverage-badge branch | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: coverage-badge | |
folder: coverage |