Skip to content

Commit e338d84

Browse files
committed
Merge branch 'main' into introduce-workflow
2 parents 2c48874 + 3dfeee0 commit e338d84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+771
-293
lines changed

.github/workflows/aim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/allennlp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10']
18+
python-version: ['3.8', '3.9', '3.10']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/base.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -34,11 +34,6 @@ jobs:
3434
pip install -r requirements.txt
3535
- name: Run examples
3636
run: |
37-
python max_trials_callback.py
38-
python enqueue_trial.py
39-
python quadratic_simple.py
40-
python simple_pruning.py
41-
python -m py_compile rapids_simple.py # due to difficulty importing, compile only
4237
jupyter nbconvert --to notebook --execute quickstart.ipynb
4338
env:
4439
OMP_NUM_THREADS: 1

.github/workflows/basic.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: basic
2+
3+
on:
4+
schedule:
5+
- cron: '0 15 * * *'
6+
pull_request:
7+
paths:
8+
- 'basic/**'
9+
- '.github/workflows/basic.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+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: setup-python${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install (Python)
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install --progress-bar off -U setuptools
29+
pip install git+https://github.com/optuna/optuna.git
30+
python -c 'import optuna'
31+
32+
pip install -r basic/requirements.txt
33+
- name: Run examples
34+
run: |
35+
python basic/quadratic.py
36+
python basic/pruning.py
37+
python basic/quadratic_constraint.py
38+
python basic/quadratic_multi_objective.py
39+
python basic/artifact_store.py
40+
env:
41+
OMP_NUM_THREADS: 1

.github/workflows/catboost.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-python@v5
2121
with:
22-
python-version: 3.8
22+
python-version: 3.12
2323

2424
- name: Install
2525
run: |

.github/workflows/dashboard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/dask.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/dask_ml.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -28,6 +28,10 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install --progress-bar off -U setuptools
3030
pip install git+https://github.com/optuna/optuna.git
31+
# TODO(c-bata): Remove the version constraint after dask-ml supports dask 2025.1.0
32+
pip install "dask<2025.1.0"
33+
# TODO(c-bata): Remove the version constraint after fixes https://github.com/optuna/optuna-examples/issues/314
34+
pip install "numpy<2.2"
3135
python -c 'import optuna'
3236
3337
pip install -r dask_ml/requirements.txt

.github/workflows/faq.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: faq
2+
3+
on:
4+
schedule:
5+
- cron: '0 15 * * *'
6+
pull_request:
7+
paths:
8+
- 'faq/**'
9+
- '.github/workflows/faq.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+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: setup-python${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install (Python)
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install --progress-bar off -U setuptools
29+
pip install git+https://github.com/optuna/optuna.git
30+
python -c 'import optuna'
31+
32+
pip install -r faq/requirements.txt
33+
- name: Run examples
34+
run: |
35+
python faq/max_trials_callback.py
36+
python faq/enqueue_trial.py
37+
env:
38+
OMP_NUM_THREADS: 1

0 commit comments

Comments
 (0)