Skip to content

Commit

Permalink
Revert "fix: remove lint because it do nothing"
Browse files Browse the repository at this point in the history
This reverts commit 4bd1d56.
  • Loading branch information
steinbrueckri committed Mar 20, 2023
1 parent 2a66b1e commit 674880b
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 6 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,38 @@ defaults:
working-directory: "ansible-role-tenable-agent"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v3.3.0
with:
path: "ansible-role-tenable-agent"

- name: 🚀 Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pipenv"

- name: ⏬ Install OS dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

- name: ⏬ Install pipenv and dependencies
run: |
python -m pip install --upgrade pipenv wheel
pipenv install
- name: 🏃 Lint / Python
run: pipenv run flake8 *.py --ignore=E501,W503

- name: 🏃 Lint / Markdown
run: pipenv run pymarkdownlnt --disable-rules MD013 scan .

molecule:
name: Molecule
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -37,15 +67,15 @@ jobs:
python-version: "3.11"
cache: "pipenv"

- name: Install OS dependencies
- name: Install OS dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

- name: Install pipenv and dependencies
- name: ⏬Install pipenv and dependencies
run: |
python -m pip install --upgrade pipenv wheel
pipenv install
- name: Run Molecule tests.
- name: 🏃 Run Molecule tests.
run: pipenv run molecule test
env:
PY_COLORS: "1"
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ molecule = {extras = ["docker"], version = "*"}
docker = "*"
molecule-hetznercloud = "*"
hcloud = "*"
flake8 = "*"
pymarkdownlnt = "*"

[dev-packages]

Expand Down
80 changes: 79 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Ansible role for installing and configuring Nessus Agent

_NOTE:_ The Tenable download URLs are not static and they will change. To automatically generate a new list, run

```
$ get-package-urls.py >vars/package_url.yaml
```sh
get-package-urls.py >vars/package_url.yaml
```

## Dependencies
Expand Down

0 comments on commit 674880b

Please sign in to comment.