Skip to content

[stable-1] Fix CI

[stable-1] Fix CI #446

Workflow file for this run

---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# Run some antsibull 0.44.0 tests against the current development version of antsibull-core
# to make sure we don't accidentally break compatibility.
name: antsibull compatibility
on:
push:
branches:
- main
- stable-*
pull_request:
branches:
- main
- stable-*
# Run once per week (Monday at 04:00 UTC)
schedule:
- cron: '0 4 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out antsibull-core
uses: actions/checkout@v3
with:
path: antsibull-core
# antsibull 0.44.0 depends on antsibull-docs >= 1.0.0 as well, so install 1.0.0 of that
- name: Check out antsibull-docs 1.0.0
uses: actions/checkout@v3
with:
repository: ansible-community/antsibull-docs
ref: 1.0.0
path: antsibull-docs
# antsibull 0.44.0 depends on antsibull-changelog >= 0.14.0 as well, so install 0.14.0 of that
- name: Check out antsibull-changelog 0.14.0
uses: actions/checkout@v3
with:
repository: ansible-community/antsibull-changelog
ref: 0.14.0
path: antsibull-changelog
- name: Check out antsibull 0.44.0
uses: actions/checkout@v3
with:
repository: ansible-community/antsibull
ref: 0.44.0
path: antsibull
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
ansible-galaxy collection install community.general
python -m pip install --upgrade pip
python -m pip install ansible-core poetry
sed -e 's/^codecov = /# codecov = /g' -i pyproject.toml
poetry install
poetry update
working-directory: antsibull
# pyre should complain if a signature changed in an incompatible way
- name: Lint with pyre
run: |
./lint-pyre.sh
working-directory: antsibull
# We use Ansible 5 here since antsibull 0.44.0 is not compatible with the latest Ansible 6 releases (due to _python in .deps files)
- name: "Test building a release: Ansible 5 with ansible-core 2.12"
run: |
ansible-playbook -vv playbooks/build-single-release.yaml -e 'antsibull_build_command="poetry run antsibull-build"' -e antsibull_ansible_version=5.99.0 -e antsibull_build_file=ansible-5.build -e antsibull_data_dir="{{ antsibull_data_git_dir }}/5" -e antsibull_ansible_git_version=stable-2.12
working-directory: antsibull
env:
# Make result better readable
ANSIBLE_CALLBACK_RESULT_FORMAT: yaml