-
Notifications
You must be signed in to change notification settings - Fork 293
42 lines (37 loc) · 1.08 KB
/
test_on_push.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
name: Build and light test
on: [push]
jobs:
build:
runs-on: [self-hosted]
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
path: main_class
- name: make
run: cd main_class && make -j class
- name: run class
run: cd main_class && ./class explanatory.ini
nose_tests_lvl1:
runs-on: [self-hosted]
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
path: main_class
- name: Create or update virtual Python environment
run: |
rm -f venv/bin/python
virtualenv venv
source venv/bin/activate
pip install --upgrade pip
pip install numpy scipy pandas matplotlib cython nose parameterized
deactivate
- name: make classy
run: source venv/bin/activate && cd main_class && make -j && deactivate
- name: Testing 🤖
run: |
source venv/bin/activate
cd main_class/python
OMP_NUM_THREADS=16 TEST_LEVEL=1 python "$(which nosetests)" -v -a test_scenario test_class.py --nologcapture --nocapture
deactivate