Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Galaxy meta info #72

Merged
merged 3 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skip_list: []
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude = .venv/
max-line-length = 88
47 changes: 26 additions & 21 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
---

# This is a basic workflow to help you get started with Actions

name: Molecule

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- develop
- main
- master
- tags/*

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: macos-10.15
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.8]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: install lint prerequisite
run: |
sudo apt -y install python3-setuptools ansible-lint

- name: Install molecule
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install python3-setuptools python3 python3-pip docker vagrant
sudo pip3 install wheel
sudo pip3 install molecule testinfra yamllint ansible-lint flake8 molecule-vagrant

python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: molecule lint
run: |
molecule lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
**/__pycache__
venv/
.venv/
2 changes: 1 addition & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extends: default

ignore: |
venv/
.venv/

rules:
braces:
Expand Down
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
galaxy_info:
author: Larry Smith Jr.
description: Ansible role to manage(create, extend, resize) LVM Groups/Logical Volumes.
namespace: mrlesmithjr
role_name: manage-lvm

license: MIT
min_ansible_version: 1.2
Expand Down
5 changes: 4 additions & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ driver:
name: vagrant
provider:
name: virtualbox
lint: yamllint . && flake8 && ansible-lint
lint: |
yamllint .
ansible-lint
flake8
platforms:
- name: CentOS-Molecule-LVM
box: mrlesmithjr/centos7
Expand Down
Loading