Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ jobs:
git fetch -f origin ${{ github.ref }}:${{ github.ref }} ;
echo git describe now reports $(git describe --always)

- name: coverage setup
env: ${{matrix.env}}
if: matrix.coverage
run: |
# Use python3 coverage to match version in flux docker image
sudo apt update ; \
sudo apt install -yy python3-pip ; \
pip3 install --upgrade pip ;
pip3 install --upgrade --force-reinstall coverage ;

- name: docker buildx
uses: docker/setup-buildx-action@v3
if: matrix.needs_buildx
Expand All @@ -101,6 +111,15 @@ jobs:
if: failure() || cancelled()
run: src/test/checks-annotate.sh

- name: coverage report
if: success() && matrix.coverage
env:
DOCKER_REPO:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{matrix.coverage_flags}}

- name: create release
id: create_release
if: |
Expand Down
21 changes: 21 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
coverage:
round: down
range: "65...100"
ignore:
- "^t/.*"
- ".*/test/.*"

# Allow coverage to drop up to 0.1%
status:
project:
default:
threshold: .1

comment:
layout: "header, diff, changes, tree"
behavior: new
after_n_builds: 2

codecov:
notify:
after_n_builds: 2
1 change: 1 addition & 0 deletions src/test/docker/docker-run-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export DISTCHECK
export RECHECK
export BUILD_DIR
export chain_lint
export COVERAGE

if [[ "$INSTALL_ONLY" == "t" ]]; then
docker run --rm \
Expand Down
7 changes: 7 additions & 0 deletions src/test/generate-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ def __str__(self):
DISTCHECK="t",
),
)
# coverage
matrix.add_build(
name="coverage",
image="el9",
coverage_flags="ci-basic",
coverage=True,
)


print(matrix)
Loading