Skip to content

Commit

Permalink
Change pytest invokation and make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
amaslenn committed Oct 25, 2024
1 parent cba433a commit 1caf2ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ jobs:
set -eEx
set -o pipefail
pytest --dead-fixtures
pytest -vv --cov
python -m pytest -vv --cov
python -m pytest --dead-fixtures
# <100% coverage might indicate that some tests are not doing what they should,
# but realistically, it might too hard to reach, so lower it a bit
Expand Down
2 changes: 1 addition & 1 deletion tests/test_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from cloudai.schema.test_template.sleep.slurm_command_gen_strategy import SleepSlurmCommandGenStrategy
from cloudai.schema.test_template.sleep.template import Sleep
from cloudai.schema.test_template.ucc_test.slurm_command_gen_strategy import UCCTestSlurmCommandGenStrategy
from cloudai.systems import SlurmSystem, StandaloneSystem
from cloudai.systems import SlurmSystem
from cloudai.test_definitions.gpt import GPTCmdArgs, GPTTestDefinition
from cloudai.test_definitions.grok import GrokCmdArgs, GrokTestDefinition
from cloudai.test_definitions.nccl import NCCLCmdArgs, NCCLTestDefinition
Expand Down
1 change: 1 addition & 0 deletions tests/test_slurm_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from unittest.mock import Mock, patch

import pytest

from cloudai import Installable, InstallStatusResult
from cloudai.installer.installables import DockerImage, GitRepo, PythonExecutable
from cloudai.installer.slurm_installer import SlurmInstaller
Expand Down

0 comments on commit 1caf2ad

Please sign in to comment.