Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate basic and faq directories #277

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Separate basic and faq
  • Loading branch information
kAIto47802 committed Aug 9, 2024
commit 484861eb6619bbe399b397fc5c917310d8b84b0f
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.
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