Skip to content

Commit aa2d223

Browse files
authored
Merge pull request #21 from gap-packages/mh/travis-to-gh-actions
Switch CI to use GitHub Actions
2 parents 46c0bd2 + 02eb35b commit aa2d223

File tree

3 files changed

+49
-37
lines changed

3 files changed

+49
-37
lines changed

.github/workflows/CI.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request
4+
on:
5+
- push
6+
- pull_request
7+
8+
jobs:
9+
# The CI test job
10+
test:
11+
name: ${{ matrix.gap-branch }}
12+
runs-on: ubuntu-latest
13+
# Don't run this twice on PRs for branches pushed to the same repository
14+
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
gap-branch:
19+
- master
20+
- stable-4.11
21+
- stable-4.10
22+
- stable-4.9
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: gap-actions/setup-gap-for-packages@v1
27+
with:
28+
GAPBRANCH: ${{ matrix.gap-branch }}
29+
- uses: gap-actions/run-test-for-packages@v1
30+
31+
# The documentation job
32+
manual:
33+
name: Build manuals
34+
runs-on: ubuntu-latest
35+
# Don't run this twice on PRs for branches pushed to the same repository
36+
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: gap-actions/setup-gap-for-packages@v1
41+
- uses: gap-actions/compile-documentation-for-packages@v1
42+
with:
43+
use-latex: 'true'
44+
- name: 'Upload documentation'
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: manual
48+
path: ./doc/manual.pdf

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/gap-packages/PatternClass.svg?branch=master)](https://travis-ci.org/gap-packages/PatternClass)
1+
[![Build Status](https://github.com/gap-packages/PatternClass/workflows/CI/badge.svg?branch=master)](https://github.com/gap-packages/PatternClass/actions?query=workflow%3ACI+branch%3Amaster)
22
[![Code Coverage](https://codecov.io/github/gap-packages/PatternClass/coverage.svg?branch=master&token=)](https://codecov.io/gh/gap-packages/PatternClass)
33

44
The 'PatternClass' GAP 4 package

0 commit comments

Comments
 (0)