Skip to content

Commit b2671fa

Browse files
authored
CI: Pip install core dependencies dev versions from dpf-standalone (#665)
* CI: Pip install core dependencies dev versions from dpf-standalone * requirements_dev.txt * Update ci.yml * Update tests.yml
1 parent 48f58c0 commit b2671fa

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ env:
2424
PACKAGE_NAME: ansys-dpf-core
2525
MODULE: core
2626
ANSYS_VERSION: 232
27-
extra: "--find-links .github/"
2827

2928
jobs:
3029
debug:
@@ -67,6 +66,7 @@ jobs:
6766
wheel: true
6867
wheelhouse: false
6968
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
69+
custom-requirements: requirements/requirements_dev.txt
7070
secrets: inherit
7171

7272
docker_tests:
@@ -126,4 +126,3 @@ jobs:
126126
with:
127127
ANSYS_VERSION: "232"
128128
secrets: inherit
129-

.github/workflows/tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
required: false
3030
type: string
3131
default: ''
32+
custom-requirements:
33+
description: "Path to requirements.txt file to install"
34+
required: false
35+
type: string
36+
default: ''
3237
# Can be called manually
3338
workflow_dispatch:
3439
inputs:
@@ -62,11 +67,15 @@ on:
6267
required: false
6368
type: string
6469
default: ''
70+
custom-requirements:
71+
description: "Path to requirements.txt file to install"
72+
required: false
73+
type: string
74+
default: ''
6575

6676
env:
6777
PACKAGE_NAME: ansys-dpf-core
6878
MODULE: core
69-
extra: "--find-links .github/"
7079

7180
jobs:
7281
setup:
@@ -110,8 +119,9 @@ jobs:
110119
install_extras: plotting
111120
wheel: ${{ inputs.wheel }}
112121
wheelhouse: ${{ inputs.wheelhouse }}
113-
extra-pip-args: ${{ env.extra }}
122+
extra-pip-args: ${{ format('--find-links ./dpf-standalone/v{0}/dist', inputs.ANSYS_VERSION) }}
114123
standalone_suffix: ${{ inputs.standalone_suffix }}
124+
custom-requirements: ${{ inputs.custom-requirements }}
115125

116126
- name: "Install ansys-grpc-dpf==0.4.0"
117127
if: inputs.ANSYS_VERSION == 221

requirements/requirements_dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ansys-grpc-dpf==0.7.1.dev0
2+
ansys-dpf-gate==0.3.1.dev0
3+
ansys-dpf-gatebin==0.3.1.dev0

0 commit comments

Comments
 (0)