-
Notifications
You must be signed in to change notification settings - Fork 135
144 lines (122 loc) · 4.5 KB
/
github-actions.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: GitHub RAVEN test
run-name: ${{ github.actor }} is testing out RAVEN
on: [push, pull_request]
concurrency:
# Here the group is defined by the head_ref of the PR
group: ${{ github.head_ref }}
# Here we specify that we'll cancel any "in progress" workflow of the same group. Thus if we push, ammend a commit and push
# again the previous workflow will be cancelled, thus saving us github action build minutes and avoid any conflicts
cancel-in-progress: true
jobs:
Test-RAVEN-Linux:
runs-on: ubuntu-latest
# runs-on: ubuntu-22.04
steps:
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
activate-environment: raven_libraries
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true
- name: Job Information
run: |
echo " The job was automatically triggered by a ${{ github.event_name }} event."
echo " This job is now running on a ${{ runner.os }} server"
echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Fetch and Branch
uses: actions/checkout@v3
- name: Install Plugins
run: |
pwd
python3 ./scripts/install_plugins.py -a
- name: Set Python Environment and Build Raven
run: |
./scripts/establish_conda_env.sh --install
./build_raven
- name: Test RAVEN
# if: always()
# continue-on-error: true # numba library cause autoarma failed for latest ubuntu
run: |
./run_tests --library-report
./run_tests -j4 --raven
- name: Test Plugins
continue-on-error: true
run: |
./run_tests -j4 --plugins
Test-RAVEN-macOS:
runs-on: macos-latest
# runs-on: macos-14
steps:
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
activate-environment: raven_libraries
use-only-tar-bz2: False
auto-update-conda: true
auto-activate-base: true
- name: Job Information
run: |
echo " The job was automatically triggered by a ${{ github.event_name }} event."
echo " This job is now running on a ${{ runner.os }} server"
echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Fetch and Branch
uses: actions/checkout@v3
- name: Install Plugins
run: |
pwd
python3 ./scripts/install_plugins.py -a
- name: Set Python Environment and Build Raven
run: |
./scripts/establish_conda_env.sh --install
./build_raven
- name: Test RAVEN
# if: always()
continue-on-error: true
run: |
./run_tests --library-report
./run_tests -j4 --raven
- name: Test Plugins
continue-on-error: true
run: |
./run_tests -j4 --plugins
Test-RAVEN-Windows:
runs-on: windows-latest
steps:
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
activate-environment: raven_libraries
use-only-tar-bz2: true
auto-update-conda: true
auto-activate-base: true
- name: Job Information
run: |
echo " The job was automatically triggered by a ${{ github.event_name }} event."
echo " This job is now running on a ${{ runner.os }} server"
echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Fetch and Branch
uses: actions/checkout@v3
- name: Install Plugins
run: |
pwd
python ./scripts/install_plugins.py -a
- name: Set Python Environment and Build Raven
run: |
bash ./scripts/establish_conda_env.sh --install --conda-defs $HOME/Miniconda3/etc/profile.d/conda.sh
bash ./build_raven
- name: Test RAVEN
# if: always()
run: |
bash ./run_tests --library-report
bash ./run_tests -j4 --raven
- name: Test Plugins
continue-on-error: true
run: |
bash ./run_tests -j4 --plugins