Mountpoints #13
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: Test HPC Resource Provisioner | |
on: pull_request | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: clone repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
pip3 install -e 'hpc_provisioner[test]' | |
- name: Run tests | |
run: |- | |
source venv/bin/activate | |
pytest hpc_provisioner | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: coverage.xml | |
badge: true | |
fail_below_min: true | |
format: markdown | |
thresholds: 80 90 | |
output: both | |
- name: Code Coverage as PR comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: github.event_name == 'pull_request' | |
with: | |
recreate: true | |
path: code-coverage-results.md |