Use Makefile for env setup

This commit is contained in:
Faustin Lammler 2024-07-12 13:15:18 +02:00
parent 344d3044cb
commit 6d294e4d2f
No known key found for this signature in database
GPG Key ID: 390A2F27832A5C79
5 changed files with 13 additions and 6 deletions

View File

@ -23,5 +23,4 @@ runs:
- name: Install requirements - name: Install requirements
shell: bash shell: bash
run: | run: |
python3 -m pip install --upgrade pip make install
python3 -m pip install -r requirements.txt

View File

@ -51,7 +51,9 @@ jobs:
- name: Setup environment - name: Setup environment
uses: ./.github/workflows/composite-action uses: ./.github/workflows/composite-action
- name: Run molecule - name: Run molecule
run: molecule test -s cluster run: |
source .venv/bin/activate
molecule test -s cluster
env: env:
PY_COLORS: "1" PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1" ANSIBLE_FORCE_COLOR: "1"

View File

@ -57,7 +57,9 @@ jobs:
- name: Setup environment - name: Setup environment
uses: ./.github/workflows/composite-action uses: ./.github/workflows/composite-action
- name: Run molecule - name: Run molecule
run: molecule test -s cluster run: |
source .venv/bin/activate
molecule test -s cluster
env: env:
PY_COLORS: "1" PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1" ANSIBLE_FORCE_COLOR: "1"

View File

@ -55,7 +55,9 @@ jobs:
- name: Setup environment - name: Setup environment
uses: ./.github/workflows/composite-action uses: ./.github/workflows/composite-action
- name: Run molecule - name: Run molecule
run: molecule test run: |
source .venv/bin/activate
molecule test
env: env:
PY_COLORS: "1" PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1" ANSIBLE_FORCE_COLOR: "1"

View File

@ -99,7 +99,9 @@ jobs:
- name: Setup environment - name: Setup environment
uses: ./.github/workflows/composite-action uses: ./.github/workflows/composite-action
- name: Run molecule - name: Run molecule
run: molecule test run: |
source .venv/bin/activate
molecule test
env: env:
PY_COLORS: "1" PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1" ANSIBLE_FORCE_COLOR: "1"