-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
105 additions
and
63 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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://astral.sh/uv/install.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 |
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
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
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