-
Notifications
You must be signed in to change notification settings - Fork 15
109 lines (94 loc) · 2.77 KB
/
Copy pathsmoke-test.yml
File metadata and controls
109 lines (94 loc) · 2.77 KB
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
name: Dependency smoke test (Python)
on:
# Allow manual trigger of workflow
workflow_dispatch:
# Run tests on push/merge to main
push:
branches:
- main
# TODO: Remove later
- pytest_update
# Run tests on anything that has a pull request to main/development
pull_request:
branches:
- main
- development
jobs:
smoke_raytune:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"] # "3.11" fails due to swig
os: ["ubuntu-latest"] # "macos-latest", "windows-latest" fails due to swig
defaults:
run:
shell: bash # Default to using bash on all
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install stand alone raytune
run: |
pip install swig
python -m pip install 'deepcave[raytune]'
- name: Verify raytune dependency is importable
run: |
python - <<'PY'
import importlib
importlib.import_module('ray.tune')
PY
smoke_bohb:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"] # "3.11" fails due to swig
os: ["ubuntu-latest"] # "macos-latest", "windows-latest" fails due to swig
defaults:
run:
shell: bash # Default to using bash on all
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install stand alone bohb
run: |
pip install swig
python -m pip install 'deepcave[bohb]'
- name: Verify bohb dependency is importable
run: |
python - <<'PY'
import importlib
importlib.import_module('hpbandster')
PY
smoke_optuna:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"] # "3.11" fails due to swig
os: ["ubuntu-latest"] # "macos-latest", "windows-latest" fails due to swig
defaults:
run:
shell: bash # Default to using bash on all
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install stand alone optuna
run: |
pip install swig
python -m pip install 'deepcave[optuna]'
- name: Verify bohb dependency is importable
run: |
python - <<'PY'
import importlib
importlib.import_module('optuna')
PY