Skip to content

Commit 19fe156

Browse files
ci: checkout from main branch
1 parent 7e9d534 commit 19fe156

File tree

3 files changed

+140
-7
lines changed

3 files changed

+140
-7
lines changed

.github/workflows/gap.yml

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
name: "GAP"
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- stable-*.*
9+
schedule:
10+
# Every day at 3:30 AM UTC
11+
- cron: '30 3 * * *'
12+
13+
env:
14+
DIGRAPHS_LIB: digraphs-lib-0.6
15+
16+
jobs:
17+
test-unix:
18+
name: "${{ matrix.os }}${{ matrix.ABI }} / GAP ${{ matrix.gap-branch }}"
19+
runs-on: "${{ matrix.os }}-latest"
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os:
24+
- ubuntu
25+
gap-branch:
26+
- master
27+
- stable-4.11
28+
- stable-4.12
29+
- stable-4.13
30+
ABI: ['']
31+
pkgs-to-clone:
32+
- NautyTracesInterface
33+
34+
include:
35+
- gap-branch: master
36+
os: macos
37+
pkgs-to-clone: "NautyTracesInterface"
38+
- gap-branch: master
39+
os: ubuntu
40+
ABI: 32
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: "Install dependencies"
45+
if: ${{ runner.os == 'macOS' }}
46+
run: brew install automake
47+
- name: "Install GAP and clone/compile necessary packages"
48+
uses: gap-actions/setup-gap@v2
49+
with:
50+
GAP_PKGS_TO_CLONE: "${{ matrix.pkgs-to-clone }} digraphs/graphviz"
51+
GAP_PKGS_TO_BUILD: "io orb profiling grape NautyTracesInterface datastructures"
52+
GAPBRANCH: ${{ matrix.gap-branch }}
53+
ABI: ${{ matrix.ABI }}
54+
- name: "Build Digraphs"
55+
uses: gap-actions/build-pkg@v1
56+
with:
57+
ABI: ${{ matrix.ABI }}
58+
- name: "Install digraphs-lib"
59+
run: |
60+
curl --retry 5 -L -O "https://digraphs.github.io/Digraphs/${{ env.DIGRAPHS_LIB }}.tar.gz"
61+
tar xf "${{ env.DIGRAPHS_LIB }}.tar.gz"
62+
- name: "Run DigraphsTestInstall"
63+
uses: gap-actions/run-pkg-tests@v2
64+
with:
65+
GAP_TESTFILE: "tst/github_actions/install.g"
66+
- name: "Run DigraphsTestStandard"
67+
uses: gap-actions/run-pkg-tests@v2
68+
with:
69+
GAP_TESTFILE: "tst/github_actions/standard.g"
70+
- name: "Run DigraphsTestManualExamples"
71+
uses: gap-actions/run-pkg-tests@v2
72+
with:
73+
GAP_TESTFILE: "tst/github_actions/examples.g"
74+
- name: "Run DigraphsTestExtreme"
75+
uses: gap-actions/run-pkg-tests@v2
76+
with:
77+
GAP_TESTFILE: "tst/github_actions/extreme.g"
78+
- uses: gap-actions/process-coverage@v2
79+
- uses: codecov/codecov-action@v3
80+
81+
test-cygwin:
82+
name: "cygwin / GAP master"
83+
runs-on: windows-2019
84+
env:
85+
CHERE_INVOKING: 1
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: gap-actions/setup-cygwin@v1
89+
- uses: gap-actions/setup-gap@cygwin-v2
90+
with:
91+
GAP_PKGS_TO_BUILD: "io orb profiling grape datastructures"
92+
GAP_PKGS_TO_CLONE: "digraphs/graphviz"
93+
- uses: gap-actions/build-pkg@cygwin-v1
94+
- name: "Install digraphs-lib"
95+
run: |
96+
curl --retry 5 -L -O "https://digraphs.github.io/Digraphs/${{ env.DIGRAPHS_LIB }}.tar.gz"
97+
tar xf "${{ env.DIGRAPHS_LIB }}.tar.gz"
98+
- uses: gap-actions/run-pkg-tests@cygwin-v2
99+
- uses: gap-actions/process-coverage@cygwin-v2
100+
- uses: codecov/codecov-action@v3
101+
102+
with-external-planarity-bliss:
103+
runs-on: "ubuntu-latest"
104+
env:
105+
GAPBRANCH: "stable-4.12"
106+
ABI: 64
107+
PKG_CONFIG_PATH: "/home/runner/micromamba/envs/digraphs/lib/pkgconfig:/home/runner/micromamba/envs/digraphs/share/pkgconfig/"
108+
LD_LIBRARY_PATH: "/home/runner/micromamba/envs/digraphs/lib"
109+
CFLAGS: "-I/home/runner/micromamba/envs/digraphs/include"
110+
LDFLAGS: "-L/home/runner/micromamba/envs/digraphs/lib"
111+
defaults:
112+
run:
113+
shell: bash -l {0}
114+
steps:
115+
- uses: actions/checkout@v4
116+
- name: "Install micromamba environment from environment.yml . . ."
117+
uses: mamba-org/setup-micromamba@v1
118+
with:
119+
environment-file: environment.yml
120+
cache-environment: true
121+
- name: "Activate \"digraphs\" environment . . ."
122+
run: micromamba activate digraphs
123+
- name: "Install GAP and clone/compile necessary packages"
124+
uses: gap-actions/setup-gap@v2
125+
with:
126+
GAP_PKGS_TO_BUILD: "io orb profiling grape datastructures"
127+
GAP_PKGS_TO_CLONE: "digraphs/graphviz"
128+
- name: "Build Digraphs"
129+
uses: gap-actions/build-pkg@v1
130+
with:
131+
CONFIGFLAGS: --with-external-planarity --with-external-bliss
132+
- name: "Run Digraphs package's tst/teststandard.g"
133+
uses: gap-actions/run-pkg-tests@v2

PackageInfo.g

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## <#GAPDoc Label="PKGVERSIONDATA">
1212
## <!ENTITY VERSION "1.7.1">
13-
## <!ENTITY GAPVERS "4.10.0">
13+
## <!ENTITY GAPVERS "4.11.0">
1414
## <!ENTITY GRAPEVERS "4.8.1">
1515
## <!ENTITY IOVERS "4.5.1">
1616
## <!ENTITY ORBVERS "4.8.2">
@@ -388,7 +388,7 @@ PackageDoc := rec(
388388
),
389389

390390
Dependencies := rec(
391-
GAP := ">=4.10.0",
391+
GAP := ">=4.11.0",
392392
NeededOtherPackages := [["io", ">=4.5.1"],
393393
["orb", ">=4.8.2"],
394394
["graphviz", ">=0.0.0"],

gap/display.gi

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function(D, colors)
104104
Length(out[i]),
105105
Length(colors[i]));
106106
fi;
107-
Perform(colors[i], GV_ErrorIfNotValidColor);
107+
Perform(colors[i], ErrorIfNotValidColor);
108108
od;
109109
end);
110110

@@ -118,7 +118,7 @@ function(D, gv, colors)
118118
out := OutNeighbours(D);
119119
for n in DigraphVertices(D) do
120120
for i in [1 .. Length(out[n])] do
121-
if IsGVDigraph(gv) or n > out[n][i] then
121+
if IsGraphvizDigraph(gv) or n > out[n][i] then
122122
e := GraphvizAddEdge(gv, n, out[n][i]);
123123
GraphvizSetAttr(e, "color", colors[n][i]);
124124
fi;
@@ -255,8 +255,8 @@ function(D, gv, hi_verts, hi, lo)
255255
ErrorNoReturn("the 2nd argument (list) must consist of vertices ",
256256
"of the 1st argument (a digraph)");
257257
fi;
258-
GV_ErrorIfNotValidColor(hi);
259-
GV_ErrorIfNotValidColor(lo);
258+
ErrorIfNotValidColor(hi);
259+
ErrorIfNotValidColor(lo);
260260

261261
GraphvizSetAttr(gv, "shape", "circle");
262262

@@ -275,7 +275,7 @@ function(D, gv, hi_verts, hi, lo)
275275

276276
for i in DigraphVertices(D) do
277277
for j in out[i] do
278-
if IsGVDigraph(gv) or i > j then
278+
if IsGraphvizDigraph(gv) or i > j then
279279
edge := GraphvizAddEdge(gv, nodes[i], nodes[j]);
280280
if i in hi_verts and j in hi_verts then
281281
color := hi;

0 commit comments

Comments
 (0)