Skip to content

Checks

Checks #1362

Workflow file for this run

name: Checks
on:
push:
branches:
- main
pull_request: {}
schedule:
- cron: '0 23 * * SUN-THU'
jobs:
checks:
if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna-examples') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U black hacking isort
- name: black
run: black . --check --diff
- name: flake8
run: flake8 .
- name: isort
run: isort . --check --diff