Remove setup-python action

Ansible (and ansible-core) is already installed in the runner images
which should be enough to interact with ansible galaxy without needing
to install any additional packages.
This commit is contained in:
Mario Finelli
2025-08-21 11:25:50 +02:00
parent c58c59c63d
commit 2ef95d29d6

View File

@@ -25,18 +25,6 @@ jobs:
[ "$(cat galaxy.yml | grep version: | awk '{print $2}')" = $(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF}) ] || exit 1 [ "$(cat galaxy.yml | grep version: | awk '{print $2}')" = $(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF}) ] || exit 1
echo "version=$(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF})" >> $GITHUB_OUTPUT echo "version=$(awk -F '/' '{print substr($3, 2)}' <<< ${GITHUB_REF})" >> $GITHUB_OUTPUT
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: 'pip'
- name: Install pip packages
run: |
pip3 install -U pip
pip3 install wheel
pip3 install ansible-core
- name: Deploy collection - name: Deploy collection
run: | run: |
ansible-galaxy collection build ansible-galaxy collection build