mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-02-04 00:39:26 +03:00
- Update actions/checkout to v4 - Update actions/setup-python to v5 - Update actions/cache to v4 (fixes deprecation failures) - Fix ansible-lint role-name rule violations
42 lines
1012 B
YAML
42 lines
1012 B
YAML
---
|
|
name: Molecule
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- main
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 4
|
|
matrix:
|
|
python-version: [3.9]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt -r requirements-dev.txt
|
|
- name: Check linting with pre-commit
|
|
run: pre-commit run --all-files
|