Skip to content

Commit

Permalink
Fix the benchmark workflow (#302)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
  • Loading branch information
lebrice authored Jan 31, 2024
1 parent 7e1edcd commit 0560f9b
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ jobs:
name: Run benchmark-action
runs-on: ubuntu-latest
steps:
- 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: Download previous benchmark data
uses: actions/cache@v3
Expand All @@ -38,7 +40,7 @@ jobs:

- name: Run benchmark
run: |
pytest --benchmark-only --benchmark-json=.benchmark_output.json
poetry run pytest --benchmark-only --cov=simple_parsing --cov-report=xml --cov-append --benchmark-json=.benchmark_output.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand All @@ -62,3 +64,12 @@ jobs:
# Workflow will fail when an alert happens
fail-on-alert: true
alert-comment-cc-users: '@lebrice'

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
env_vars: PLATFORM,PYTHON
name: codecov-umbrella
fail_ci_if_error: false

0 comments on commit 0560f9b

Please sign in to comment.