chore(deps): bump ansible-core from 2.18.0 to 2.18.1 in the pip group across 1 directory #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 ThysTips <[email protected]> | |
# SPDX-FileCopyrightText: 2024 Weytop | |
# SPDX-FileContributor: ThysTips <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHON_VERSION: 3.12 | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./ansible_collections/weytop/infrastructure | |
jobs: | |
compliance: | |
runs-on: self-hosted | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
- id: compliance | |
name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v4 | |
lint: | |
runs-on: self-hosted | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: ./ansible_collections/weytop/infrastructure | |
- id: setup-python | |
name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: 'pipenv' | |
- id: pipenv | |
name: Install pipenv | |
run: | | |
python3 -m pip install pipenv --upgrade | |
pipenv sync --dev --python ${{ env.PYTHON_VERSION }} | |
# - id: ansible-sanity | |
# name: Test Ansible Collection Sanity | |
# env: | |
# HOME: /root | |
# run: pipenv run ansible-test sanity | |
- id: ansible-lint | |
name: Lint Ansible Collection | |
env: | |
HOME: /root | |
run: pipenv run ansible-lint | |
build: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
runs-on: self-hosted | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: ./ansible_collections/weytop/infrastructure | |
- id: setup-python | |
name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: 'pipenv' | |
- id: pipenv | |
name: Install pipenv | |
run: | | |
python3 -m pip install pipenv --upgrade | |
pipenv sync --dev --python ${{ env.PYTHON_VERSION }} | |
- id: dist-clean | |
name: Clean dist directory | |
run: rm -rf dist || true | |
- id: build-collection | |
name: Build Ansible Collection | |
env: | |
HOME: /root | |
run: pipenv run ansible-galaxy collection build --force |