[stable-2] Fix typing, use ClientTimeout instead of float, bump aiohttp dependency to 3.3.0+ #677
Workflow file for this run
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
--- | |
# 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@v4 | |
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@v4 | |
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@v4 | |
with: | |
repository: ansible-community/antsibull | |
ref: 0.52.0 | |
path: antsibull | |
- name: Patch our pyproject.toml | |
# Necessary for pyre... | |
run: | | |
sed -e 's/aiohttp/aiohttp < 3.10.0,/' -i pyproject.toml | |
working-directory: antsibull-core | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
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 | |
sed -i 's|--search-path ../antsibull-docs/src/||' ./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 |