Skip to content

Commit

Permalink
TMP: restrict tests to sort out cache
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 23, 2024
1 parent 2f97b8a commit 0bf3fc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ jobs:
default_python: '3.12'
envs: |
- linux: profile
artifact-path: .profiles/*
artifact-path: asdf/profiles/*
2 changes: 1 addition & 1 deletion asdf/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@pytest.fixture(autouse=True)
def auto_profile(request):
PROFILE_ROOT = TESTS_ROOT / ".profiles"
PROFILE_ROOT = TESTS_ROOT / "profiles"
# Turn profiling on
profiler = Profiler()
profiler.start()
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ commands =
-W "ignore::asdf.exceptions.AsdfManifestURIMismatchWarning"

[testenv:profile]
deps =
pyinstrument
commands_pre =
pip install pyinstrument
pip freeze
commands =
pyinstrument -m pytest {posargs}
pyinstrument -m pytest asdf/_asdf.py -s {posargs}

0 comments on commit 0bf3fc4

Please sign in to comment.