Skip to content

Commit

Permalink
Use the actual codspeed flag for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed May 8, 2024
1 parent c834e31 commit 4f5da4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
uses: CodspeedHQ/action@v2
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "pytest -vvv -r fEs --pyargs dkist -k test_benchmarks --benchmark-autosave"
run: "pytest -vvv -r fEs --pyargs dkist --codspeed"
1 change: 1 addition & 0 deletions dkist/tests/test_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def load_asdf(vispdir):
ds = load_dataset(vispdir / "test_visp.asdf")

Check warning on line 9 in dkist/tests/test_benchmarks.py

View check run for this annotation

Codecov / codecov/patch

dkist/tests/test_benchmarks.py#L9

Added line #L9 was not covered by tests


@pytest.mark.benchmark
def test_load_asdf(benchmark, tmp_path_factory):
vispdir = tmp_path_factory.mktemp("data")
with gzip.open(Path(rootdir) / "large_visp.asdf.gz", mode="rb") as gfo:
Expand Down

0 comments on commit 4f5da4e

Please sign in to comment.