Skip to content

Commit 47826f1

Browse files
added github workflow
1 parent 5ca26de commit 47826f1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/openml.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: openml
2+
3+
on:
4+
schedule:
5+
- cron: '0 15 * * *'
6+
pull_request:
7+
paths:
8+
- 'openml/**'
9+
- '.github/workflows/openml.yml'
10+
11+
jobs:
12+
examples:
13+
if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna-examples') || (github.event_name != 'schedule')
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
# TODO(c-bata): Add Python 3.9 here after fixing https://github.com/optuna/optuna-examples/issues/307
18+
python-version: ['3.10', '3.11', '3.12']
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: setup-python${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install (Python)
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install --progress-bar off -U setuptools
30+
pip install git+https://github.com/optuna/optuna.git
31+
python -c 'import optuna'
32+
pip install git+https://github.com/optuna/optuna-integration.git
33+
python -c 'import optuna_integration'
34+
35+
pip install -r openml/requirements.txt
36+
- name: Run examples
37+
run: |
38+
python openml/openml_simple.py
39+
env:
40+
OMP_NUM_THREADS: 1

0 commit comments

Comments
 (0)