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 10, 2024
1 parent 710c45b commit afab85d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ exclude_paths:
- .github
- requirements.yml

skip_list:
- yaml[truthy]

enable_list:
- name[prefix]
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Pull request
about: Describe the proposed change

---

**Describe the change**
A clear and concise description of what the pull request is.

**Testing**
In case a feature was added, how were tests performed?
31 changes: 19 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: '37 19 19 * *'
- cron: '37 19 * * *'
- cron: '37 19 19 * *'

workflow_dispatch:

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


jobs:
lint:
runs-on: ubuntu-20.04
Expand All @@ -41,7 +40,9 @@ jobs:
- name: ansible-lint
uses: ansible-community/ansible-lint-action@main
test:
runs-on: ubuntu-22.04
needs:
- lint
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -77,18 +78,24 @@ jobs:
- image: "docker-molecule-images"
tag: "noble"
steps:
- name: Checkout Role
- name: checkout
uses: actions/checkout@v4

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
path: "${{ github.repository }}"
- name: Running Molecule Test
uses: buluma/molecule-action@v24.6.17
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:
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:
- lint
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ansible-compat == 4.*
ansible-compat == 24.*
molecule == 24.*
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 afab85d

Please sign in to comment.