Skip to content

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

Bump actions/setup-python from 4 to 5

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

Workflow file for this run

name: test
on:
push:
branches:
- main
paths:
- ".github/workflows/test.yml"
- "base/**"
- "meta/**"
- "templates/**"
- "ansible.cfg"
- "goss.yaml"
- "requirements.txt"
- "Vagrantfile"
- "variables.yml"
- "vars.yaml"
pull_request:
jobs:
test:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os: [focal, jammy, rhel8, rhel9]
steps:
- uses: actions/checkout@v4
- name: Cache Vagrant boxes
uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
- name: Install Python
uses: actions/setup-python@v5
with:
cache: pip
- name: Run tests in Vagrant
run: |
pip install --upgrade pip
python -m venv env
source env/bin/activate
pip install -r requirements.txt
vagrant up ${{ matrix.os }}