Skip to content
Merged
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: 9 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ env:

jobs:
test:
name: ${{ matrix.gap-branch }}
name: ${{ matrix.gap-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gap-branch:
gap-version:
- master
- stable-4.14
- stable-4.13
- stable-4.12
- stable-4.11
- stable-4.10
- '4.14'
- '4.13'
- '4.12'
- '4.11'
- '4.10'

steps:
# the order of the checkout actions is important because all contents of
Expand All @@ -36,10 +36,9 @@ jobs:
uses: actions/checkout@v5
with:
path: this-action/
- uses: gap-actions/setup-gap@v2
- uses: gap-actions/setup-gap@v3
with:
GAPBRANCH: ${{ matrix.gap-branch }}
GAP_PKGS_TO_BUILD: ''
gap-version: ${{ matrix.gap-version }}
- uses: gap-actions/build-pkg@v1
- uses: gap-actions/run-pkg-tests@v3
- uses: ./this-action/
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# process-coverage V2
# process-coverage

This GitHub action prepares coverage data for GAP packages for upload
to [Codecov](https://www.codecov.io/).
Expand All @@ -13,6 +13,10 @@ package.
By default it processes the coverage data gathered during the action
[gap-actions/run-test-for-packages](https://github.com/gap-actions/run-pkg-tests).

### What's new in v3

This action now requires `gap-actions/setup-gap@v3`.

### Example

The following is a minimal example to run this action.
Expand All @@ -32,10 +36,10 @@ jobs:

steps:
- uses: actions/checkout@v5
- uses: gap-actions/setup-gap@v2
- uses: gap-actions/setup-gap@v3
- uses: gap-actions/build-pkg@v1
- uses: gap-actions/run-pkg-tests@v2
- uses: gap-actions/process-coverage@v2
- uses: gap-actions/process-coverage@v3
- uses: codecov/codecov-action@v5
```

Expand Down
12 changes: 0 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ runs:
- name: "Build io and profiling packages if necessary"
shell: bash
run: |
set -ex
GAPROOT=${GAPROOT-$HOME/gap}

# the following somewhat awkward `cd` invocation ensures
# compatibility with both GAP <= 4.11 (with package dir names like
# `pkg/io-1.2.3`) and GAP >= 4.12 (where it is `pkg/io`)
Expand All @@ -32,15 +29,6 @@ runs:
- name: "Process coverage data"
shell: bash
run: |
set -ex
GAPROOT=${GAPROOT-$HOME/gap}

mkdir -p /tmp/gaproot/pkg/
ln -f -s $PWD /tmp/gaproot/pkg/

# start GAP with custom GAP root, to ensure correct package version is loaded
GAP="$GAPROOT/gap -l /tmp/gaproot; --quitonbreak -q"

# generate library coverage reports
$GAP -q <<GAPInput
if LoadPackage("profiling") <> true then
Expand Down