mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Follow review comments
Skip artifact tests Fix error Fix error Fix error Fix error Fix error
This commit is contained in:
@@ -18,7 +18,6 @@ jobs:
|
||||
python-version: '3.10'
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
# python_tests requires optuna>=3.0.0 since it imports FloatDistribution
|
||||
run: |
|
||||
python -m pip install --progress-bar off --upgrade pip setuptools
|
||||
pip install --progress-bar off "optuna>=3.1.0"
|
||||
@@ -32,10 +31,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
# Add Python '3.11' after released Optuna v3.1
|
||||
# since Optuna v3.0.4 depends on scipy<1.9.0 and >=1.7.0
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
||||
optuna-version: ['optuna>=3.1.0', 'git+https://github.com/optuna/optuna.git']
|
||||
optuna-version: ['optuna>=3.1.0']
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python${{ matrix.python-version }}
|
||||
@@ -52,4 +49,44 @@ jobs:
|
||||
pip install --progress-bar off .[optional]
|
||||
pip install --progress-bar off .[test]
|
||||
pip install --progress-bar off .
|
||||
- run: pytest python_tests
|
||||
- name: Run python unit tests
|
||||
run: |
|
||||
pytest python_tests
|
||||
test-with-optuna-master:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --progress-bar off --upgrade pip setuptools
|
||||
pip install --progress-bar off .[optional]
|
||||
pip install --progress-bar off .[test]
|
||||
pip install --progress-bar off .
|
||||
python -m pip install --progress-bar off --upgrade git+https://github.com/optuna/optuna.git
|
||||
- name: Run python unit tests
|
||||
run: |
|
||||
pytest python_tests
|
||||
test-with-optuna-oldest: # Ideally, optuna==3.1.0, but lots of tests are broken.
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --progress-bar off --upgrade pip setuptools
|
||||
pip install --progress-bar off .[optional]
|
||||
pip install --progress-bar off .[test]
|
||||
pip install --progress-bar off .
|
||||
python -m pip install --progress-bar off --upgrade optuna==3.4.0
|
||||
- name: Run python unit tests
|
||||
run: |
|
||||
pytest python_tests
|
||||
|
||||
Reference in New Issue
Block a user