-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (34 loc) · 915 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Build image
run: docker compose build
- name: Run plugin
run: docker compose up
- name: Extract coverage data
run: |
docker create --name test quay.io/arcalot/arcaflow-plugin-template-python: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