forked from HEPCloud/decisionengine_modules
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.46 KB
/
unit-test.yaml
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
# SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC
# SPDX-License-Identifier: Apache-2.0
---
name: Test in EL7/EL8 container
on:
pull_request:
branches:
- master
push:
branches:
- "**" # matches every branch
- "!gh-pages" # excludes gh-pages branch
jobs:
pytest_el7:
if: ${{ github.ref == 'refs/heads/1.7' }}
runs-on: ubuntu-latest
name: A job to test the decision engine framework on EL7
timeout-minutes: 30
steps:
- name: Checkout code tree
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run the tests in a container (SL7/HEPCloud-CI)
uses: ./.github/actions/python-command-in-sl7-container
- name: Archive logs
uses: actions/upload-artifact@v2
with:
name: test-el7-log
path: pytest_el7.log
if-no-files-found: error
pytest_el8:
if: ${{ false }} # temporary disable this job
runs-on: ubuntu-latest
name: A job to test the decision engine framework on EL8
timeout-minutes: 30
steps:
- name: Checkout code tree
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run the tests in a container (EL8/HEPCloud-CI)
uses: ./.github/actions/python-command-in-el8-container
- name: Archive logs
uses: actions/upload-artifact@v2
with:
name: test-el8-log
path: pytest_el8.log
if-no-files-found: error