-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (31 loc) · 986 Bytes
/
pull-request.yml
File metadata and controls
34 lines (31 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: Pull request
"on":
pull_request:
jobs:
lint:
if: github.repository == 'stackhpc/openstack-config'
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