Checks (Integration) #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks (Integration) | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 23 * * SUN-THU' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
checks: | |
if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna') || (github.event_name != 'schedule') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Setup environment | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install openmpi-bin libopenmpi-dev libopenblas-dev | |
# TODO(Shinichi): Remove the version constraint on SQLAlchemy | |
- name: Install | |
run: | | |
python -m pip install -U pip | |
pip install --progress-bar off -U .[benchmark] | |
pip install --progress-bar off -U .[checking] | |
pip install --progress-bar off -U .[integration] --extra-index-url https://download.pytorch.org/whl/cpu | |
pip install --progress-bar off -U .[optional] | |
pip install --progress-bar off -U .[test] | |
pip install --progress-bar off -U bayesmark | |
pip install --progress-bar off -U kurobako | |
pip install "sqlalchemy<2.0.0" | |
- name: Output installed packages | |
run: | | |
pip freeze --all | |
- name: Output dependency tree | |
run: | | |
pip install pipdeptree | |
pipdeptree | |
- name: black | |
run: black . --check --diff | |
- name: flake8 | |
run: flake8 . | |
- name: isort | |
run: isort . --check --diff | |
- name: mypy | |
run: mypy . --warn-unused-ignores | |
- name: blackdoc | |
run: blackdoc . --check --diff |