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

Enable use of custom wheels shipped with the server #665

Merged
merged 4 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
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
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