-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (48 loc) · 1.57 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
# Trigger the workflow on push or pull request
on:
workflow_dispatch:
pull_request:
push:
jobs:
# The CI test job
test:
name: GAP ${{ matrix.gap-branch }}
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.13
steps:
- uses: actions/checkout@v2
- uses: gap-actions/setup-gap@v2
with:
GAPBRANCH: ${{ matrix.gap-branch }}
GAP_PKGS_TO_CLONE: "datastructures ChrisJefferson/QuickCheck"
GAP_PKGS_TO_BUILD: "io profiling datastructures json digraphs orb grape"
- uses: gap-actions/run-pkg-tests@v2
- uses: gap-actions/process-coverage@v2
- uses: codecov/codecov-action@v2
# The documentation job
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@v2
with:
GAP_PKGS_TO_BUILD: ''
- uses: gap-actions/build-pkg-docs@v1
with:
use-latex: 'true'
- name: 'Upload documentation'
uses: actions/upload-artifact@v2
with:
name: manual
path: ./doc/manual.pdf