forked from optuna/optuna
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.33 KB
/
speed-benchmarks.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
52
53
54
55
56
name: Speed benchmarks
on:
schedule:
- cron: '0 23 * * SUN-THU'
jobs:
speed-benchmarks:
runs-on: ubuntu-latest
# Not intended for forks.
if: github.repository == 'optuna/optuna'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Setup cache
uses: actions/cache@v3
env:
cache-name: speed-benchmarks
with:
path: ~/.cache/pip
key: ${{ runner.os }}-3.11-${{ env.cache-name }}-${{ hashFiles('**/pyproject.toml') }}-v1
restore-keys: |
${{ runner.os }}-3.11-${{ env.cache-name }}-${{ hashFiles('**/pyproject.toml') }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install --progress-bar off -U setuptools
# Install minimal dependencies and confirm that `import optuna` is successful.
pip install --progress-bar off .
python -c 'import optuna'
optuna --version
pip install --progress-bar off .[benchmark]
asv machine --yes
- name: Output installed packages
run: |
pip freeze --all
- name: Output dependency tree
run: |
pip install pipdeptree
pipdeptree
- name: Speed benchmarks
run: |
asv run