-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.15 KB
/
run_build_and_test.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
name: Build and Test
on:
# allows running workflows manually
workflow_dispatch:
push:
branches:
- develop
paths:
- '.github/workflows/run_build_and_test.yml'
- 'install-nukebox.sh'
- 'tests/**'
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 5120
swap-size-mb: 2048
remove-dotnet: 'true'
remove-android: 'true'
remove-docker-images: 'true'
remove-codeql: 'true'
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install NukeBox
run: |
./install-nukebox.sh -d ${GITHUB_WORKSPACE} \
-e nuke \
-g ${GITHUB_WORKSPACE}/nuke/G4Data \
-c ${GITHUB_WORKSPACE}/nuke/CrossSectionData
- name: Run tests
run: |
source ${GITHUB_WORKSPACE}/nuke/nuke
nuke activate
python -m pip install pytest
python -m pytest -ra tests