-
Notifications
You must be signed in to change notification settings - Fork 90
83 lines (78 loc) · 2.49 KB
/
integration.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
name: integration
on:
pull_request:
branches: [ master, development ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
python_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
- name: Setup Python
run: python -m pip install --upgrade -r scripts/requirements.txt
- name: Fabricate COCO
run: python scripts/fabricate --release
- name: Install cocoex Python package
run: pip install code-experiments/build/python/
- name: Install cocopp Python package
run: pip install code-postprocessing/
- name: Run Python example experiment
run: python code-experiments/build/python/example/example_experiment.py bbob 20
- name: Post process results
run: python3 -m cocopp -o ./postproc ./exdata
c_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
- name: Setup Python
run: python -m pip install --upgrade -r scripts/requirements.txt
- name: Fabricate COCO
run: python scripts/fabricate --release
- name: Install cocopp Python package
run: pip install code-postprocessing/
- name: CMake C example experiment
run: cmake -B build code-experiments/build/c
- name: Build C example experiment
run: cmake --build build
- name: Run C example experiment
run: build/example_experiment
- name: Post process results
run: python3 -m cocopp -o ./postproc ./exdata
c_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "pip"
- name: Setup Python
run: python -m pip install --upgrade -r scripts/requirements.txt
- name: Fabricate COCO
run: python scripts\fabricate --release
- name: Install cocopp Python package
run: pip install code-postprocessing\
- name: CMake C example experiment
run: cmake -B build code-experiments\build\c
- name: Build C example experiment
run: cmake --build build
- name: Run C example experiment
run: .\build\Debug\example_experiment.exe
- name: Post process results
run: python3 -m cocopp -o postproc exdata