-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
490f0ec
commit 9cb70fc
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Reference docs at https://docs.codecov.com/docs/codecovyml-reference | ||
|
||
codecov: | ||
require_ci_to_pass: yes | ||
require_ci_to_pass: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
"""To skip the pytests marked with gpu""" | ||
import pytest | ||
"""To skip the pytests marked with gpu.""" | ||
|
||
import os | ||
|
||
tt = os.system('nvidia-smi') | ||
import pytest | ||
|
||
tt = os.system("nvidia-smi") | ||
|
||
|
||
def pytest_runtest_setup(item): | ||
if (tt!=0): | ||
if tt != 0: | ||
for marker in item.iter_markers(name="gpu"): | ||
pytest.skip(f"test requires gpu") | ||
|
||
|
||
"""Pytest fixtures. | ||
""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters