diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 5f62eeff..66a2835b 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -14,12 +14,4 @@ runs: - name: Install secator with pipx shell: bash - run: pipx install .[dev] - - - name: Install flake8 - shell: bash - run: pipx install flake8 - - - name: Install coverage - shell: bash - run: pipx install coverage \ No newline at end of file + run: pipx install .[dev] --include-deps \ No newline at end of file diff --git a/README.md b/README.md index 5030b939..67c1577c 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ To install `secator` **without the underlying tools**: git clone https://github.com/freelabz/secator cd secator - pipx install -e . + pipx install -e .[dev] --include-deps diff --git a/secator/cli.py b/secator/cli.py index f503aac6..29e1f402 100644 --- a/secator/cli.py +++ b/secator/cli.py @@ -592,6 +592,7 @@ def unit(tasks, workflows, scans, test, coverage=False, debug=False): os.environ['TEST_WORKFLOWS'] = workflows or '' os.environ['TEST_SCANS'] = scans or '' os.environ['DEBUG'] = str(debug) + os.environ['STORE_HTTP_RESPONSES'] = '0' cmd = 'coverage run --omit="*test*" -m unittest' if test: @@ -603,6 +604,7 @@ def unit(tasks, workflows, scans, test, coverage=False, debug=False): result = Command.run_command( cmd, + cwd=ROOT_FOLDER, **DEFAULT_CMD_OPTS ) if coverage: @@ -617,6 +619,7 @@ def unit(tasks, workflows, scans, test, coverage=False, debug=False): def lint(): result = Command.run_command( 'flake8 secator/', + cwd=ROOT_FOLDER, **DEFAULT_CMD_OPTS ) sys.exit(result.return_code)