This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
workflow.yml
74 lines (70 loc) · 2.26 KB
/
workflow.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "Oscar CI"
on:
push:
branches: [ $default-branch ]
pull_request: {}
workflow_dispatch: {}
env:
OSCAR_CI_CONFIG: "config/standalone.yaml"
PKGNAME: "GAP"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: rbehrends/oscar-ci
ref: standalone
- uses: actions/checkout@v2
with:
path: current-rev
- name: Install APT packages
run: >-
sudo apt-get install -y
`ruby -r yaml -e 'puts YAML.load(File.read("config/apt.yaml"))'`
# This entry allows configuration of the CI via the switch-package,
# select-tests, and build-mode scripts.
#
# Use switch-package to set the url and branch for a package. This
# is if you want to override the default package location for a
# pull request
#
# Use select-tests to run only a subset of tests. The arguments
# should be one or more of:
# - init
# - core
# - extra
# - notebooks
#
# The init test alone verifies if all packages load and is very
# fast. The core test set will run tests for all Oscar core
# packages. The extra tests will run tests for additional packages
# that are not part of Oscar proper. The notebooks tests will also
# run notebook tests and can usually be omitted for GitHub Actions.
#
# The set-config script will change one ore more configuration
# variables. Most useful are the following:
#
# buildtype: stable, develop, or master
# jobs: number of tests to run in parallel.
# julia: which version to use.
# Fastest is "download:A.B.C", where A.B.C is the version
# number. If a branch or tag is given, Julia will be built
# from source.
# workspace: path where Oscar will be built and tests will
# be run.
#
# See config/standalone.yaml for all available settings.
- name: Configure Oscar CI
run: |
./switch-package "$PKGNAME" "$GITHUB_WORKSPACE/current-rev"
./select-tests init
./set-config buildtype master
- name: Install OSCAR
run: "./install.rb"
- name: Run Oscar CI Tests
run: "./run-tests.rb"
- uses: actions/upload-artifact@v2
with:
name: logs
path: workspace/logs/