Skip to content

gap-actions/run-pkg-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-pkg-tests V2

This GitHub action runs the test-suite of a GAP package.

Usage

The action run-pkg-tests has to be called by the workflow of a GAP package. By default it runs the file tst/testall.g, gathering coverage while doing so.

Its behaviour can be customized via the inputs below.

Inputs

All of the following inputs are optional.

  • NO_COVERAGE:
    • Set to a non-empty string to suppress gathering coverage.
    • default: ''
  • GAP_TESTFILE:
    • The name of the GAP file to be read for executing the package tests.
    • default: 'tst/testall.g'
  • pre-gap:
    • Prefix for the GAP shell variable used by this action to launch GAP (e.g. setting this to valgrind --trace-children=yes --leak-check=full will run GAP through valgrind)'
    • default: ''
  • warnings-as-errors:
    • Set to false to not treat warnings produced when loading the package as errors.
    • default: true

Example

The following is a minimal example to run this action.

name: CI

on:
  push:
  pull_request:

jobs:
  # The CI test job
  test:
    name: CI test
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - uses: gap-actions/setup-gap@v2
      - uses: gap-actions/build-pkg@v1
      - uses: gap-actions/run-pkg-tests@v2

Contact

Please submit bug reports, suggestions for improvements and patches via the issue tracker.

License

The action run-pkg-tests is free software; you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opinion) any later version. For details, see the file LICENSE distributed with this action or the FSF's own site.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5