Skip to content

Commit

Permalink
Fix the 'upload' benchmark workflow (#303)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
  • Loading branch information
lebrice committed Jan 31, 2024
1 parent 0560f9b commit 3194331
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ jobs:
runs-on: ubuntu-latest
name: Test out the action in this repository
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "pip"
cache: poetry

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[all]
run: poetry install --all-extras

- name: Run the benchmark
run: pytest --benchmark-only --benchmark-json=benchmark_results.json
run: poetry run pytest --benchmark-only --benchmark-json=benchmark_results.json

- name: Upload the file
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 3194331

Please sign in to comment.