diff --git a/.gitea/workflows/yamllint.yml b/.gitea/workflows/yamllint.yml index 082225b..2d041d7 100644 --- a/.gitea/workflows/yamllint.yml +++ b/.gitea/workflows/yamllint.yml @@ -12,15 +12,22 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - - name: Install linters system-wide - run: apk add --no-cache py3-yamllint py3-ansible-lint git bash + + - name: Install linters + run: | + apk add --no-cache python3 py3-pip bash git + python3 -m venv venv + . venv/bin/activate + pip install --upgrade pip + pip install yamllint ansible-lint - name: Run linters run: | + . venv/bin/activate yamllint . ansible-lint ansible/playbooks + build: runs-on: docker