Skip to content

Commit

Permalink
CI: Pip install core dependencies dev versions from dpf-standalone (#665
Browse files Browse the repository at this point in the history
)

* CI: Pip install core dependencies dev versions from dpf-standalone

* requirements_dev.txt

* Update ci.yml

* Update tests.yml
  • Loading branch information
cbellot000 authored Dec 2, 2022
1 parent 48f58c0 commit b2671fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ env:
PACKAGE_NAME: ansys-dpf-core
MODULE: core
ANSYS_VERSION: 232
extra: "--find-links .github/"

jobs:
debug:
Expand Down Expand Up @@ -67,6 +66,7 @@ jobs:
wheel: true
wheelhouse: false
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
custom-requirements: requirements/requirements_dev.txt
secrets: inherit

docker_tests:
Expand Down Expand Up @@ -126,4 +126,3 @@ jobs:
with:
ANSYS_VERSION: "232"
secrets: inherit

14 changes: 12 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ on:
required: false
type: string
default: ''
custom-requirements:
description: "Path to requirements.txt file to install"
required: false
type: string
default: ''
# Can be called manually
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -62,11 +67,15 @@ on:
required: false
type: string
default: ''
custom-requirements:
description: "Path to requirements.txt file to install"
required: false
type: string
default: ''

env:
PACKAGE_NAME: ansys-dpf-core
MODULE: core
extra: "--find-links .github/"

jobs:
setup:
Expand Down Expand Up @@ -110,8 +119,9 @@ jobs:
install_extras: plotting
wheel: ${{ inputs.wheel }}
wheelhouse: ${{ inputs.wheelhouse }}
extra-pip-args: ${{ env.extra }}
extra-pip-args: ${{ format('--find-links ./dpf-standalone/v{0}/dist', inputs.ANSYS_VERSION) }}
standalone_suffix: ${{ inputs.standalone_suffix }}
custom-requirements: ${{ inputs.custom-requirements }}

- name: "Install ansys-grpc-dpf==0.4.0"
if: inputs.ANSYS_VERSION == 221
Expand Down
3 changes: 3 additions & 0 deletions requirements/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ansys-grpc-dpf==0.7.1.dev0
ansys-dpf-gate==0.3.1.dev0
ansys-dpf-gatebin==0.3.1.dev0

0 comments on commit b2671fa

Please sign in to comment.