This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Remove hash digests from GitHub actions in the workflow #122
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install build tools | |
run: python3 -m pip install --upgrade build | |
- name: Test python build | |
run: python3 -m build | |
- name: Upload built artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: builds | |
path: dist | |
if-no-files-found: error | |
- name: Build image | |
run: docker-compose build | |
- name: Run plugin | |
run: docker-compose up | |
- name: Extract coverage data | |
run: | | |
docker create --name test ghcr.io/arcalot/arcaflow-plugin-wait:latest | |
docker cp test:/htmlcov . | |
docker rm test | |
- name: Publish coverage report to job summary | |
run: | | |
pip install html2text | |
html2text --ignore-images --ignore-links -b 0 htmlcov/index.html >> $GITHUB_STEP_SUMMARY | |
- name: Upload coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: htmlcov | |
if-no-files-found: error |