Skip to content

Bundle playbooks in collection #62

Bundle playbooks in collection

Bundle playbooks in collection #62

Workflow file for this run

# SPDX-License-Identifier: ISC
#
# Copyright (c) 2024 Johnathan C. Maudlin <[email protected]>
---
name: lint
on:
pull_request:
branches: ["**"]
paths-ignore: ["**.md"]
push:
branches: ["**"]
paths-ignore: ["**.md"]
workflow_dispatch:
jobs:
lint:
name: ${{ matrix.linter }}-${{ matrix.python }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
linter: [ansible-lint, mypy, ruff]
os: [ubuntu-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: tox.ini
- name: Setup Tox cache
uses: actions/cache@v3
id: tox
with:
key: tox-${{ matrix.linter }}-${{ matrix.python }}-${{ matrix.os }}-${{ hashFiles('tox.ini') }}
path: .tox/${{ matrix.linter }}
- name: Install Tox
run: pip install tox
- name: Run ${{ matrix.linter }}
run: tox -e ${{ matrix.linter }}