-
-
Notifications
You must be signed in to change notification settings - Fork 306
53 lines (42 loc) · 1.26 KB
/
cli.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
name: CLI experience
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
STABLE_PYTHON_VERSION: '3.12'
HYPERFINE_VERSION: '1.18.0'
jobs:
response-time:
name: CLI responsiveness with latest Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.STABLE_PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.STABLE_PYTHON_VERSION }}
- name: Install UV
run: curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
- name: Install hyperfine
uses: taiki-e/install-action@v2
with:
tool: hyperfine@${{ env.HYPERFINE_VERSION }}
- name: Install other tools
run: uv pip install --system --upgrade flit poetry pipenv
- name: Install ourself
run: |
uv pip install --system .
uv pip install --system ./backend
- name: Benchmark
run: |
hyperfine -m 100 --warmup 10 -i pipenv
hyperfine -m 100 --warmup 10 poetry
hyperfine -m 100 --warmup 10 -i flit
hyperfine -m 100 --warmup 10 hatch