generated from akashdhruv/myproject
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (58 loc) · 1.88 KB
/
simple-project.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
name: simple-project
on:
push:
branches:
- development
paths-ignore:
- '**.rst'
- '**.md'
- 'LICENSE'
- 'CITATION'
jobs:
verbose:
name: "verbose"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Jobrunner and Dependencies
run: |
sudo apt-get update -y && apt-get install -y apt-utils && apt-get upgrade -y
sudo apt-get install -y python3 python3-dev python3-pip
sudo apt-get install -y python-is-python3
python3 setup.py develop --user --with-instruments
export PATH=$PATH:$HOME/.local/bin
- name: Run Tests
run: |
cd tests/Simple-Project
jobrunner setup JobObject -V
jobrunner submit JobObject -V
- name: Verify Output
run: |
cd tests/Simple-Project/JobObject
diff job.setup setupSolution.sh
diff job.submit submitSolution.sh
# DEVNOTE (01/29/2024): comment out this test until verbose mode fixes are applied
# diff job.output submitOutput.txt
not-verbose:
name: "not-verbose"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Jobrunner and Dependencies
run: |
sudo apt-get update -y && apt-get install -y apt-utils && apt-get upgrade -y
sudo apt-get install -y python3 python3-dev python3-pip
sudo apt-get install -y python-is-python3
python3 setup.py develop --user
export PATH=$PATH:$HOME/.local/bin
- name: Run Tests
run: |
cd tests/Simple-Project
jobrunner setup JobObject
jobrunner submit JobObject
- name: Verify Output
run: |
cd tests/Simple-Project/JobObject
diff job.setup setupSolution.sh
diff job.submit submitSolution.sh
diff job.output submitOutput.txt