Skip to content

Commit 4cf378c

Browse files
committed
Enable more custom inputs when running CI manually
1 parent 5f9f897 commit 4cf378c

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ on:
1414
description: 'Suffix of the branch on standalone'
1515
required: false
1616
default: ''
17+
custom-requirements:
18+
description: "Path to requirements.txt file to install"
19+
required: false
20+
type: string
21+
default: 'requirements/requirements_dev.txt'
22+
custom-wheels:
23+
description: "extra pip --find-links argument to find custom dpf wheels"
24+
required: false
25+
type: string
26+
default: './dpf-standalone/v232/dist'
27+
custom-wheels-docker:
28+
description: "extra pip --find-links argument to find custom dpf wheels"
29+
required: false
30+
type: string
31+
default: './dpf-standalone/dist'
1732

1833

1934
concurrency:
@@ -59,17 +74,17 @@ jobs:
5974
wheel: true
6075
wheelhouse: false
6176
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
62-
custom-requirements: requirements/requirements_dev.txt
63-
custom-wheels: './dpf-standalone/v232/dist'
77+
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
78+
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v232/dist' }}
6479
secrets: inherit
6580

6681
docker_tests:
6782
name: "Build and Test on Docker"
6883
uses: ./.github/workflows/test_docker.yml
6984
with:
7085
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
71-
custom-requirements: requirements/requirements_dev.txt
72-
custom-wheels: 'dpf-standalone/dist'
86+
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
87+
custom-wheels: ${{ github.event.inputs.custom-wheels-docker || './dpf-standalone/dist' }}
7388
secrets: inherit
7489

7590
docs:
@@ -78,8 +93,8 @@ jobs:
7893
with:
7994
ANSYS_VERSION: "232"
8095
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
81-
custom-requirements: requirements/requirements_dev.txt
82-
custom-wheels: './dpf-standalone/v232/dist'
96+
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
97+
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v232/dist' }}
8398
event_name: ${{ github.event_name }}
8499
secrets: inherit
85100

@@ -101,8 +116,8 @@ jobs:
101116
ANSYS_VERSION: "232"
102117
python_versions: '["3.8"]'
103118
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
104-
custom-requirements: requirements/requirements_dev.txt
105-
custom-wheels: './dpf-standalone/v232/dist'
119+
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
120+
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v232/dist' }}
106121
secrets: inherit
107122

108123
retro_231:
@@ -145,6 +160,6 @@ jobs:
145160
with:
146161
ANSYS_VERSION: "232"
147162
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
148-
custom-requirements: requirements/requirements_dev.txt
149-
custom-wheels: './dpf-standalone/v232/dist'
163+
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
164+
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v232/dist' }}
150165
secrets: inherit

0 commit comments

Comments
 (0)