Skip to content

Commit

Permalink
CI: dive in test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 15, 2021
1 parent dfc44e5 commit cf5857a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .azure/testing-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
printf "${PYTEST_ENVS}\n"
printf "${PYTEST_ARGS}\n"
${PYTEST_ENVS} coverage run -m pytest ${PYTEST_ARGS} -v
workingDirectory: _integrations
env:
PYTEST_ENVS: $(testing.envs)
PYTEST_ARGS: $(testing.args)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
- name: Testing
env:
RESULTS: "junit/test-project-${{ matrix.config }}-${{ runner.os }}-${{ matrix.python-version }}.xml"
working-directory: _integrations
run: |
echo "${{ steps.extras.outputs.env }}"
echo "${{ steps.extras.outputs.args }}"
Expand Down
7 changes: 2 additions & 5 deletions actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,8 @@ def prepare_env(config_file: str = "config.yaml", path_root: str = _PATH_ROOT) -

@staticmethod
def _pytest_dirs(dirs: Union[None, str, list, tuple] = "") -> str:
if dirs:
dirs = [os.path.join(AssistantCLI._FOLDER_TESTS, d) for d in dirs]
dirs = " ".join(dirs) if isinstance(dirs, (tuple, list, set)) else dirs
else:
dirs = AssistantCLI._FOLDER_TESTS
dirs = "." if not dirs else dirs
dirs = " ".join(dirs) if isinstance(dirs, (tuple, list, set)) else dirs
return dirs

@staticmethod
Expand Down

0 comments on commit cf5857a

Please sign in to comment.