Skip to content

Commit

Permalink
adding slow to pytest ini options
Browse files Browse the repository at this point in the history
Only run cleanup if tests ran

Signed-off-by: Peter St. John <[email protected]>
  • Loading branch information
pstjohn committed Jan 14, 2025
1 parent 4edeb0a commit 8a538ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
clean-up:
needs: run-tests
runs-on: self-hosted-nemo-gpus-1
if: ${{ always() }}
if: ${{ success() || failure() }}
steps:
- name: clean up image
run: docker rmi nemoci.azurecr.io/bionemo:${{ github.run_id }}
Expand Down
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@
"filename": "pyproject.toml",
"hashed_secret": "79670e9c9d1c7ea5b81a96a2053d81437712c78e",
"is_verified": false,
"line_number": 47
"line_number": 43
}
]
},
"generated_at": "2024-11-01T22:26:03Z"
"generated_at": "2025-01-14T17:26:27Z"
}
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ dependencies = [
build = ['flash-attn', 'pip']

[tool.uv.workspace]
members = [
"3rdparty/*",
"sub-packages/bionemo-*/",
"internal/infra-bionemo/",
]
members = ["3rdparty/*", "internal/infra-bionemo/", "sub-packages/bionemo-*/"]

[tool.uv.sources]
# external
Expand Down Expand Up @@ -114,9 +110,10 @@ convention = "google"
[tool.pytest.ini_options]
norecursedirs = ["3rdparty"]
addopts = ["--ignore=3rdparty"]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]

[tool.pyright]
include = ["./scripts/", "./sub-packages/", "./internal/"]
include = ["./internal/", "./scripts/", "./sub-packages/"]
exclude = ["*/tests/"]
executionEnvironments = [
{ "root" = ".", pythonVersion = "3.10", extraPaths = [
Expand Down

0 comments on commit 8a538ba

Please sign in to comment.