Skip to content

Commit

Permalink
Tox is misbehaving. Default for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jul 19, 2024
1 parent afab85d commit 5315259
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 38 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
pull_request:
pull_request_target:
schedule:
- cron: '37 19 19 * *'
- cron: '37 19 19/19 * *'

workflow_dispatch:

Expand All @@ -30,19 +30,18 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true


jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: checkout
- name: Checkout Role
uses: actions/checkout@v4
- name: ansible-lint
uses: ansible-community/ansible-lint-action@main
- name: Run Ansible-lint
uses: ansible/ansible-lint@v24.7.0
test:
needs:
- lint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -59,12 +58,12 @@ jobs:
tag: "buster"
- image: "docker-molecule-images"
tag: "bullseye"
- image: "docker-molecule-images"
tag: "38"
- image: "docker-molecule-images"
tag: "39"
- image: "docker-molecule-images"
tag: "40"
- image: "docker-molecule-images"
tag: "rawhide"
- image: "docker-molecule-images"
tag: "opensuse"
- image: "docker-molecule-images"
Expand All @@ -73,29 +72,19 @@ jobs:
tag: "focal"
- image: "docker-molecule-images"
tag: "jammy"
- image: "docker-molecule-images"
tag: "lunar"
- image: "docker-molecule-images"
tag: "noble"
steps:
- name: checkout
- name: Checkout Role
uses: actions/checkout@v4

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: molecule
run: molecule converge
env:
path: "${{ github.repository }}"
- name: Running Molecule Test
uses: buluma/molecule-action@v24.6.17
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}

dependabot:
needs:
- lint
Expand Down
36 changes: 23 additions & 13 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
---
extends: default

# https://ansible.readthedocs.io/projects/lint/rules/yaml/#octals
rules:
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: false
document-start: disable
# 160 chars was the default used by old E204 rule, but
# you can easily change it or disable in your .yamllint file.
line-length:
max: 310
# We are adding an extra space inside braces as that's how prettier does it
# and we are trying not to fight other linters.
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
truthy:
check-keys: false

ignore: |
.tox/
.cache/
min-spaces-inside: 0 # yamllint defaults to 0
max-spaces-inside: 1 # yamllint defaults to 0
# key-duplicates:
# forbid-duplicated-merge-keys: true # not enabled by default
octal-values:
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
# quoted-strings:
# quote-type: double
# required: only-when-needed
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ molecule-plugins[docker] == 23.*
ansible-lint == 24.*
paramiko == 3.*
# Pinning requests version due to [bug](https://github.com/docker/docker-py/issues/3113)
# requests == 2.28.1
requests == 2.28.1

0 comments on commit 5315259

Please sign in to comment.