Skip to content

Commit

Permalink
Separate basic and faq
Browse files Browse the repository at this point in the history
  • Loading branch information
kAIto47802 committed Aug 9, 2024
1 parent c1cc06b commit 484861e
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: basic_and_faq_usages
name: basic

on:
schedule:
- cron: '0 15 * * *'
pull_request:
paths:
- 'basic_and_faq_usages/**'
- '.github/workflows/basic_and_faq_usages.yml'
- 'basic/**'
- '.github/workflows/basic.yml'

jobs:
examples:
Expand All @@ -29,14 +29,12 @@ jobs:
pip install git+https://github.com/optuna/optuna.git
python -c 'import optuna'
pip install -r basic_and_faq_usages/requirements.txt
pip install -r basic/requirements.txt
- name: Run examples
run: |
python basic_and_faq_usages/max_trials_callback.py
python basic_and_faq_usages/enqueue_trial.py
python basic_and_faq_usages/quadratic_simple.py
python basic_and_faq_usages/simple_pruning.py
python basic_and_faq_usages/quadratic_simple_constraint.py
python basic_and_faq_usages/quadratic_simple_multi_objective.py
python basic/quadratic.py
python basic/pruning.py
python basic/quadratic_constraint.py
python basic/quadratic_multi_objective.py
env:
OMP_NUM_THREADS: 1
38 changes: 38 additions & 0 deletions .github/workflows/faq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: faq

on:
schedule:
- cron: '0 15 * * *'
pull_request:
paths:
- 'faq/**'
- '.github/workflows/faq.yml'

jobs:
examples:
if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna-examples') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
- name: setup-python${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install (Python)
run: |
python -m pip install --upgrade pip
pip install --progress-bar off -U setuptools
pip install git+https://github.com/optuna/optuna.git
python -c 'import optuna'
pip install -r faq/requirements.txt
- name: Run examples
run: |
python faq/max_trials_callback.py
python faq/enqueue_trial.py
env:
OMP_NUM_THREADS: 1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions faq/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
optuna
scikit-learn>=0.19.0
pandas

0 comments on commit 484861e

Please sign in to comment.