Merge pull request #1 from OpenCHAMI/fix-ghcr-org #10
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: Run Open-API Tavern Coverage | |
on: | |
- push # Perform a build of the contents from the branch | |
- pull_request # Perform a build after merging with the target branch | |
- workflow_dispatch | |
jobs: | |
run_coverage: | |
name: Run Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Check out the coverage tool repo | |
uses: actions/checkout@v4 | |
with: | |
repository: Cray-HPE/open-api-tavern-coverage | |
path: open-api-tavern-coverage | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install coverage tool | |
run: pip install -r open-api-tavern-coverage/requirements.txt | |
- name: Run Open-API Tavern Coverage Tool | |
run: python open-api-tavern-coverage/coverage-tool.py | |
env: | |
TAVERN_FILE_DIR: test/ct/api | |
OPEN_API_FILE: api/swagger.yaml | |
API_TARGET_URLS: "{pcs_base_url}" | |
- name: Render job summary | |
id: template | |
uses: chuhlomin/render-template@v1.6 | |
with: | |
template: ./.github/workflows/coverage_summary.md.tpl | |
vars_path: ./data/output/job_summary_template_values.yaml | |
- name: Set job summary | |
run: echo '${{ steps.template.outputs.result }}' >> $GITHUB_STEP_SUMMARY |