Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Fix gitignore patterns for Ansible collections and roles #13

Fix gitignore patterns for Ansible collections and roles

Fix gitignore patterns for Ansible collections and roles #13

Workflow file for this run

---
name: Lint and Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
lint-and-build:
runs-on: ubuntu-latest
name: Lint Ansible and Build Docs
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Cache pre-commit hooks
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit hooks
run: pre-commit run --all-files --show-diff-on-failure
- name: Build documentation
run: mkdocs build --verbose --strict