-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an "upload" action for benchmark results
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 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,33 @@ | ||
name: Upload the benchmark results | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- temp_master | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
upload_benchmark_results: | ||
runs-on: ubuntu-latest | ||
name: Test out the action in this repository | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.11 | ||
cache: "pip" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[all] | ||
- name: Run the benchmark | ||
run: pytest --benchmark-only --benchmark-json=benchmark_results.json | ||
|
||
- name: Upload the file | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: benchmark_results | ||
path: benchmark_results.json |