Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotwrobson committed Mar 23, 2024
1 parent bfcffdd commit 1e492c6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,22 @@ jobs:
run: poetry install --with dev

- name: Run pytest
run: poetry run pytest --cache-clear --cov
run: poetry run pytest --cache-clear --cov --benchmark-json output.json

- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'pytest'
output-file-path: output.json
external-data-json-path: ./cache/output.json
# Workflow will fail when an alert happens
fail-on-alert: true
#|
#set -o pipefail
# | tee pytest-coverage.txt
Expand Down

0 comments on commit 1e492c6

Please sign in to comment.