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 497f013 commit 51443c7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
16 changes: 6 additions & 10 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: '3 2 2 * *'
- cron: '3 2 * * *'
- cron: '3 2 2/2 * *'

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 @@ -60,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 @@ -84,8 +82,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 51443c7

Please sign in to comment.