-
Notifications
You must be signed in to change notification settings - Fork 11
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
5 changed files
with
61 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Bump version | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
bench_release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Set Cache | ||
uses: actions/cache@v4 | ||
id: cache # name for referring later | ||
with: | ||
path: .venv/ | ||
# The cache key depends on poetry.lock | ||
key: ${{ runner.os }}-cache-${{ hashFiles('poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cache- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
# if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
python -m pip install -U pip poetry | ||
poetry --version | ||
poetry config --local virtualenvs.in-project true | ||
poetry install | ||
- name: Benchmark code | ||
run: | | ||
./scripts/bench-current | ||
- name: Commit benchmark | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git add .benchmarks/ | ||
git commit -m "bench: bench: add benchmark current release" | ||
git push origin master |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ on: | |
required: true | ||
|
||
jobs: | ||
build: | ||
build_test_bench: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -57,6 +57,10 @@ jobs: | |
git config --global user.name "GitHub Action" | ||
./scripts/test | ||
- name: Benchmark regression test | ||
run: | | ||
./scripts/bench-compare | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
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