Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
keisuke-umezawa committed Jan 22, 2024
1 parent c50b0b5 commit 6c5578a
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
optuna-version: ['optuna==3.1.0', 'optuna>=3.1.0']
optuna-version: ['optuna>=3.1.0']
steps:
- uses: actions/checkout@v2
- name: Setup Python${{ matrix.python-version }}
Expand All @@ -51,13 +51,8 @@ jobs:
pip install --progress-bar off .
- name: Run python unit tests
run: |
if [ "${{ matrix.optuna-version }}" = "optuna==3.1.0" ]; then
ignore_option="--ignore python_tests/artifact/"
else
ignore_option=""
fi
pytest python_tests $ignore_option
test-with-optuna-master:
pytest python_tests
test (3.11, optuna==main):
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -73,4 +68,26 @@ jobs:
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
- run: pytest python_tests
- name: Run python unit tests
run: |
pytest python_tests
test (3.11, optuna==3.1.0):
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.1.0
- name: Run python unit tests
run: |
ignore_option="--ignore python_tests/artifact/ python_tests/test_csv_download.py"
pytest python_tests $ignore_option

0 comments on commit 6c5578a

Please sign in to comment.