-
Notifications
You must be signed in to change notification settings - Fork 6
82 lines (72 loc) · 2.63 KB
/
antsibull.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
# 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 v3.
# TODO: Change ref to a released version once antsibull officially
# supports antsibull-core.
- name: Check out antsibull main
uses: actions/checkout@v4
with:
repository: ansible-community/antsibull
ref: main
path: antsibull
- name: Set up Python 3.11
id: python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
env:
PYTHON: "${{ steps.python.outputs.python-path }}"
run: |
pipx install --python "${PYTHON}" nox
python -m venv venv
. ./venv/bin/activate
python -m pip install . ../antsibull-core ../antsibull-changelog
ansible-galaxy collection install community.general
working-directory: antsibull
- name: Run type checkers
run: |
touch ../antsibull-changelog/src/antsibull_changelog/py.typed
nox -e typing
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