Skip to content

Commit

Permalink
fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell committed Mar 16, 2024
1 parent 1d1256f commit a0158ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: pipx install .[dev] --include-deps
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

</details>

Expand Down
3 changes: 3 additions & 0 deletions secator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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)

0 comments on commit a0158ba

Please sign in to comment.