Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action for CI tests #31

Closed
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
52 changes: 52 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

# Trigger the workflow on push or pull request
on:
- push
- pull_request

jobs:
# The job running the package tests.
test:
name: ${{ matrix.gap-branch }} ${{ matrix.ABI }}
runs-on: ubuntu-latest
# Don't run this twice on PRs for branches pushed to the same repository
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
strategy:
fail-fast: false
matrix:
gap-branch:
- master
- stable-4.11
- stable-4.10
ABI: ['']
include:
- gap-branch: master
ABI: 32

steps:
- uses: actions/checkout@v2
- uses: gap-actions/setup-gap-for-packages@latest
with:
GAPBRANCH: ${{ matrix.gap-branch }}
GAP_PKGS_TO_BUILD: 'io profiling orb'
- uses: gap-actions/run-test-for-packages@latest

# A job to compile the manual with latex and upload it as an artifact.
manual:
name: Build manuals
runs-on: ubuntu-latest
# Don't run this twice on PRs for branches pushed to the same repository
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}

steps:
- uses: actions/checkout@v2
- uses: gap-actions/setup-gap-for-packages@latest
- uses: gap-actions/compile-documentation-for-packages@latest
with:
use-latex: true
- name: "Upload documentation"
uses: actions/upload-artifact@v1
with:
name: manual
path: ./doc/manual.pdf
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/gap-packages/cvec.svg?branch=master)](https://travis-ci.com/gap-packages/cvec)
[![CI](https://github.com/gap-packages/cvec/workflows/CI/badge.svg?branch=master)](https://github.com/gap-packages/cvec/actions?query=workflow%3ACI+branch%3Amaster)
[![Code Coverage](https://codecov.io/github/gap-packages/cvec/coverage.svg?branch=master&token=)](https://codecov.io/gh/gap-packages/cvec)

# README file for the 'CVEC' GAP4 package
Expand Down