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
57 changes: 57 additions & 0 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Valgrind
on:
workflow_dispatch:
release:
types: [created]
push:
branches:
- rc-v*
pull_request:
paths:
- src/*.[hc]pp

concurrency:
# Group by workflow and ref; the last component ensures that for pull
# requests, we limit to 1 concurrent job, but for the main branch we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
# Only cancel intermediate pull request builds
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test-valgrind:
name: "Ubuntu / GAP stable-4.15 / valgrind"
runs-on: ubuntu-latest
env:
NO_COVERAGE: true
VALGRIND: valgrind --trace-children=yes --leak-check=full --error-exitcode=1
steps:
- uses: actions/checkout@v5
- name: "Output g++ version . . ."
run: g++ --version
- name: "Install Valgrind . . ."
run: sudo apt-get install valgrind
- name: "Install GAP . . ."
uses: gap-actions/setup-gap@v3
with:
gap-version: stable-4.15
configflags: --enable-valgrind
- name: "Build additional necessary GAP packages . . ."
run: |
cd ${GAPROOT}/pkg
../bin/BuildPackages.sh --strict digraphs* io* orb* datastructures* profiling*
- name: "Build Semigroups . . ."
uses: gap-actions/build-pkg@v2
with:
CONFIGFLAGS: --disable-hpcombi
- name: "Run SemigroupsTestInstall . . ."
uses: gap-actions/run-pkg-tests@v4
with:
testfile: tst/github_actions/install.g
pre-gap: ${{ env.VALGRIND }}
coverage: false
- name: "Run SemigroupsTestStandard . . ."
uses: gap-actions/run-pkg-tests@v4
with:
testfile: tst/github_actions/standard.g
pre-gap: ${{ env.VALGRIND }}
coverage: false
2 changes: 1 addition & 1 deletion src/bipart.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2016 James D. Mitchell
// Copyright (C) 2016-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/bipart.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2016 James D. Mitchell
// Copyright (C) 2016-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/cong.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/cong.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/conglatt.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2022 James D. Mitchell
// Copyright (C) 2022-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/conglatt.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2022 James D. Mitchell
// Copyright (C) 20222-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-base.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2022 James D. Mitchell
// Copyright (C) 2022-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-bipart.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-bmat.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-fallback.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2016-2022 James D. Mitchell
// Copyright (C) 2016-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-fallback.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2016-2022 James D. Mitchell
// Copyright (C) 2016-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-matrix.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-max-plus-mat.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-min-plus-mat.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-pbr.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-pperm.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin-transf.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/froidure-pin.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/pkg.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2016-2022 James D. Mitchell
// Copyright (C) 2016-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/semigroups-debug.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2017 James D. Mitchell
// Copyright (C) 2017-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/to_cpp.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2020-2022 James D. Mitchell
// Copyright (C) 2020-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/to_gap.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2021 James D. Mitchell
// Copyright (C) 2021-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/to_gap.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Semigroups package for GAP
// Copyright (C) 2020-2022 James D. Mitchell
// Copyright (C) 2020-2025 James D. Mitchell
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
7 changes: 7 additions & 0 deletions tst/github_actions/examples.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LoadPackage("semigroups", false);;
if SEMIGROUPS.TestManualExamples() then
QUIT_GAP(0);
else
QUIT_GAP(1);
fi;
FORCE_QUIT_GAP(1);
7 changes: 7 additions & 0 deletions tst/github_actions/extreme.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LoadPackage("semigroups", false);;
if SemigroupsTestExtreme(rec(earlyStop := false)) then
QUIT_GAP(0);
else
QUIT_GAP(1);
fi;
FORCE_QUIT_GAP(1);
7 changes: 7 additions & 0 deletions tst/github_actions/install.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LoadPackage("semigroups", false);;
if SemigroupsTestInstall() then
QUIT_GAP(0);
else
QUIT_GAP(1);
fi;
FORCE_QUIT_GAP(1);
7 changes: 7 additions & 0 deletions tst/github_actions/standard.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LoadPackage("semigroups", false);;
if SemigroupsTestStandard(rec(earlyStop := false)) then
QUIT_GAP(0);
else
QUIT_GAP(1);
fi;
FORCE_QUIT_GAP(1);
Loading