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 62537d1 commit f403b9f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- main
- testing
- dependabot/**
# - renovate/**
paths-ignore:
- '**/README.md'
- '**/CHANGELOG.md'
Expand All @@ -21,8 +20,7 @@ on:
pull_request:
pull_request_target:
schedule:
# - cron: '1 1 1 * *'
- cron: '1 1 * * *'
- cron: '1 1 1/1 * *'

workflow_dispatch:

Expand All @@ -36,10 +34,10 @@ 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
Expand All @@ -54,20 +52,18 @@ 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: "ubuntu_latest"
- image: "docker-molecule-images"
tag: "focal"
- image: "docker-molecule-images"
tag: "jammy"
- image: "docker-molecule-images"
tag: "lunar"
- image: "docker-molecule-images"
tag: "noble"
steps:
Expand All @@ -80,8 +76,6 @@ jobs:
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
- name: Running Role Test
run: ansible-galaxy role import --api-key ${{ secrets.galaxy_api_key }} buluma ${{ github.event.repository.name }}

dependabot:
needs:
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

0 comments on commit f403b9f

Please sign in to comment.