Skip to content

Commit 096e41a

Browse files
authored
Update CI to use setup-gap@v3, add missing dependencies (#54)
* Declare missing dependencies * Turn NautyDense into a 'global function' to fix warnings when loading NautyTracesInterface and digraphs together.
1 parent a361822 commit 096e41a

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/CI.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,27 @@ concurrency:
1919
jobs:
2020
# The CI test job
2121
test:
22-
name: ${{ matrix.gap-branch }}
22+
name: ${{ matrix.gap-version }}
2323
runs-on: ubuntu-latest
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
gap-branch:
28-
- master
29-
- stable-4.16
30-
- stable-4.15
31-
- stable-4.14
32-
- stable-4.13
33-
- stable-4.12
27+
gap-version:
28+
- 'devel' # current GAP development version from git
29+
- 'latest' # latest GAP release
30+
- 'minimal' # oldest GAP release supported by this package
3431

3532
steps:
3633
- uses: actions/checkout@v6
37-
- uses: gap-actions/setup-gap@v2
34+
- uses: gap-actions/setup-gap@v3
3835
with:
39-
GAP_PKGS_TO_BUILD: "io orb profiling datastructures digraphs grape"
40-
GAPBRANCH: ${{ matrix.gap-branch }}
41-
- uses: gap-actions/build-pkg@v1
42-
- uses: gap-actions/run-pkg-tests@v3
43-
- uses: gap-actions/run-pkg-tests@v3
36+
gap-version: ${{ matrix.gap-version }}
37+
- uses: gap-actions/build-pkg@v3
38+
- uses: gap-actions/run-pkg-tests@v4
39+
- uses: gap-actions/run-pkg-tests@v4
4440
with:
45-
only-needed: true
46-
- uses: gap-actions/process-coverage@v2
41+
mode: onlyneeded
42+
- uses: gap-actions/process-coverage@v3
4743
- uses: codecov/codecov-action@v6
4844
with:
4945
token: ${{ secrets.CODECOV_TOKEN }}

PackageInfo.g

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ PackageDoc := rec(
7373

7474
Dependencies := rec(
7575
GAP := ">= 4.12",
76-
NeededOtherPackages := [ [ "GAPDoc", ">= 1.5" ] ],
76+
NeededOtherPackages := [ [ "digraphs", ">= 1.6" ] ],
7777
SuggestedOtherPackages := [ ],
78+
TestPackages := [ [ "grape", ">= 4.9.0" ] ],
7879
ExternalConditions := [ ],
7980
),
8081

gap/NautyGraph.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,5 @@ DeclareGlobalFunction( "CREATE_NAUTY_GRAPH_OBJECT" );
402402
DeclareGlobalFunction( "CREATE_NAUTY_EDGE_COLORED_GRAPH" );
403403

404404

405+
##
406+
DeclareGlobalFunction( "NautyDense" );

gap/NautyGraph.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ end );
436436

437437

438438
#! TODO: document this
439-
BindGlobal( "NautyDense",
439+
InstallGlobalFunction( "NautyDense",
440440
function( source_list, range_list, n, is_directed, color_data )
441441
local graph;
442442
graph := NAUTY_GRAPH( source_list, range_list, n, is_directed );

0 commit comments

Comments
 (0)