Skip to content

Bump actions/setup-python from 4 to 5 #316

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #316

Workflow file for this run

name: Verify
on:
pull_request: {}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
jobs:
verify:
name: Verify
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Vagrantfile lint tool
run: sudo gem install rubocop
- name: Install Ansible
run: pip3 install --user ansible==8.3.0
- name: Check ansible version
run: ansible --version
- name: Vagrantfile syntax check
run: rubocop ./Vagrantfile --except LineLength,BlockLength,Eval,MutableConstant,FormatStringToken,EmptyLinesAroundArguments,IfUnlessModifier
- name: Install Ansible roles
run: ansible-galaxy install --role-file=provisioning/requirements.yml "--roles-path=$HOME/roles"
- name: Ansible syntax check
run: ansible-playbook provisioning/playbook.yml --inventory=tests/inventory --syntax-check
env:
ANSIBLE_ROLES_PATH: '$HOME/roles'
- name: Login to Docker Hub
if: "!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'dependabot/'))"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docs
run: (cd docs && sudo chmod go+rw -R . && ./build.sh)