Sync with generic openstack-config #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Pull request | |
"on": | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
permissions: {} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# NOTE(upgrade): Keep these in sync with Kayobe's supported Ansible and Python versions (see release notes). | |
- ansible: "2.16" | |
python: "3.12" | |
name: Ansible ${{ matrix.ansible }} lint with Python ${{ matrix.python }} | |
steps: | |
- name: GitHub Checkout 🛎 | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} 🐍 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies 📦 | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible-core==${{ matrix.ansible }}.* ansible-lint | |
- name: Linting code 🧪 | |
run: | | |
ansible-lint -v --force-color |