Skip to content

chore(ci): move Python version into a file #127

chore(ci): move Python version into a file

chore(ci): move Python version into a file #127

on:
pull_request:
paths:
- plugins/**
- Makefile
- requirements.txt
- requirements-dev.txt
- .github/**
workflow_dispatch:
permissions:
pull-requests: read
contents: read
env:
COLLECTION_PATH: .ansible/collections/ansible_collections/equinix/cloud
jobs:
integration-test-pr:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.COLLECTION_PATH }}
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.COLLECTION_PATH }}
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: update packages
run: sudo apt-get update -y
- name: install make
run: sudo apt-get install -y build-essential
- name: setup python 3
uses: actions/setup-python@v5
with:
python-version-file: ${{ env.COLLECTION_PATH }}/.python-version
- name: install dependencies
run: pip3 install -r requirements-dev.txt -r requirements.txt
- name: run docs generation
run: make docs