Skip to content

Commit bdcdcb4

Browse files
authored
GHA: Update job to install poetry (#118)
* GHA: Update job to install poetry There was a recent change in which the role no longer takes care of installing antsibull so we need to install it before running the role. See: ansible-community/antsibull-build@d65f0c1
1 parent 7f27296 commit bdcdcb4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/antsibull-build-6.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ jobs:
5353
python-version: '3.10'
5454

5555
- name: Install dependencies
56+
working-directory: antsibull
5657
run: |
5758
python3 -m pip install --upgrade pip
5859
python3 -m pip install poetry ansible-core
60+
poetry install
61+
poetry update
5962
6063
- name: Test building Ansible 6
6164
working-directory: antsibull
6265
run: |
6366
ansible-playbook -vv playbooks/build-single-release.yaml \
67+
-e 'antsibull_build_command="poetry run antsibull-build"' \
6468
-e antsibull_build_file=ansible-6.build \
6569
-e antsibull_ansible_version=6.99.0 \
6670
-e antsibull_data_dir="{{ antsibull_data_git_dir }}/6" \

.github/workflows/antsibull-build-default.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,18 @@ jobs:
5454
python-version: '3.10'
5555

5656
- name: Install dependencies
57+
working-directory: antsibull
5758
run: |
5859
python3 -m pip install --upgrade pip
5960
python3 -m pip install poetry ansible-core
61+
poetry install
62+
poetry update
6063
6164
# Using ansible_version as 5.99.0 since it is unreleased so new deps are generated
6265
- name: Test building a release with the defaults
6366
working-directory: antsibull
6467
run: |
6568
ansible-playbook -vv playbooks/build-single-release.yaml \
69+
-e 'antsibull_build_command="poetry run antsibull-build"' \
6670
-e antsibull_data_reset=false \
6771
-e antsibull_ansible_version=5.99.0

0 commit comments

Comments
 (0)