Use pytest as a test runner

This commit is contained in:
c-bata
2023-06-09 11:23:09 +09:00
parent 17f997ecd9
commit 169965f7f9
3 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -45,10 +45,10 @@ jobs:
# python_tests requires optuna>=3.0.0 since it imports FloatDistribution
run: |
python -m pip install --progress-bar off --upgrade pip setuptools
pip install boto3 moto[s3]
pip install boto3 moto[s3] pytest
pip install --progress-bar off "optuna>=3.0.0"
pip install --progress-bar off .
- run: python -m unittest
- run: pytest python_tests
test-with-optuna-master:
runs-on: ubuntu-latest
steps:
@@ -61,7 +61,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools
pip install boto3 moto[s3]
pip install boto3 moto[s3] pytest
pip install --progress-bar off .
python -m pip install --progress-bar off --upgrade git+https://github.com/optuna/optuna.git
- run: python -m unittest
- run: pytest python_tests