Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package docs build workflow: use relaxed or tested requirements #2271

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/build-package-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ on:
- '11'
- '10'
- '9'
requirements:
type: choice
description: Use relax or tested requirements
default: tested
options:
- relaxed
- tested
deploy:
type: boolean
description: Deploy the build
Expand Down Expand Up @@ -73,8 +80,8 @@ jobs:
- name: Install project requirements
run: >-
python -m pip install
-r tests/requirements.in
-c tests/requirements.txt
-r tests/requirements${{ github.event.inputs.requirements == 'relaxed' && '-relaxed' || '' }}.in
-c tests/requirements${{ github.event.inputs.requirements == 'relaxed' && '-relaxed' || '' }}.txt
working-directory: build-directory

- name: Set the COLLECTION_LIST variable
Expand Down Expand Up @@ -123,6 +130,7 @@ jobs:
echo "Package version: ${{ github.event.inputs.ansible-package-version }}";
echo "Owner: ${{ github.event.inputs.repository-owner }}";
echo "Branch: ${{ github.event.inputs.repository-branch }}";
echo "Requirements: ${{ github.event.inputs.requirements }}";
} >> "${GITHUB_STEP_SUMMARY}"

notify-build-failures:
Expand Down
Loading