forked from optuna/optuna
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.16 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Checks
on:
push:
branches:
- master
pull_request: {}
schedule:
- cron: '0 23 * * SUN-THU'
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
# TODO(c-bata): Remove the version constraint on SQLAlchemy
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U .[checking]
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 .
- name: blackdoc
run: blackdoc . --check --diff