Skip to content

nox bump: use antsibull-changelog[toml] extra #414

nox bump: use antsibull-changelog[toml] extra

nox bump: use antsibull-changelog[toml] extra #414

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.52.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.52.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
# nb: this is the first version of antsibull that declares support for antsibull-core v2
- name: Check out antsibull 0.52.0
uses: actions/checkout@v3
with:
repository: ansible-community/antsibull
ref: 0.52.0
path: antsibull
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m venv venv
. ./venv/bin/activate
python -m pip install --upgrade pip
python -m pip install . ../antsibull-changelog ../antsibull-core "pyre-check ~= 0.9" ansible-core "wheel"
ansible-galaxy collection install community.general
working-directory: antsibull
# pyre should complain if a signature changed in an incompatible way
- name: Lint with pyre
run: |
. ./venv/bin/activate
sed -i 's|poetry run||' ./lint-pyre.sh
./lint-pyre.sh
working-directory: antsibull
- name: "Test building a release: Ansible 7 with ansible-core 2.14"
run: |
. ./venv/bin/activate
ansible-playbook -vv playbooks/build-single-release.yaml -e antsibull_ansible_version=7.99.0 -e antsibull_build_file=ansible-7.build -e antsibull_data_dir="{{ antsibull_data_git_dir }}/7" -e antsibull_ansible_git_version=stable-2.14
working-directory: antsibull
env:
# Make result better readable
ANSIBLE_CALLBACK_RESULT_FORMAT: yaml