Skip to content
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
12 changes: 11 additions & 1 deletion .github/actions/hps_services/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ inputs:
description: 'Token to access the ansys-internal github docker registry'
required: true

profile:
description: 'Docker compose profiles to use'
required: false

outputs:
url:
description: 'HPS URL'
Expand Down Expand Up @@ -85,6 +89,8 @@ runs:

- name: Start services (internal package)
if: ${{ inputs.version == 'latest-dev' }}
env:
PROFILE: ${{ inputs.profile }}
shell: bash
run: |
echo "$(pwd)"
Expand All @@ -93,7 +99,11 @@ runs:
tar -xvzf docker-compose-internal.tar.gz
cd docker-compose
docker-compose pull
docker-compose up -d
if [ -z "$PROFILE"]; then
docker-compose up -d
else
docker-compose --profile $PROFILE up -d
fi
working-directory: ./docker-compose-artifact

- name: Wait for services
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:
description: HPS Feature to test against (only for latest-dev version)
type: string
default: 'main'
docker-compose-profiles:
description: Docker compose profiles to use
type: string

jobs:

Expand Down Expand Up @@ -56,6 +59,7 @@ jobs:
ghcr-token: ${{ secrets.PYANSYS_CI_BOT_PACKAGE_TOKEN }}
version: ${{ inputs.hps-version }}
feature: ${{ inputs.hps-feature }}
profile: ${{ inputs.docker-compose-profiles }}

- name: Test with tox
run: tox -e ${{ inputs.toxenv }}-coverage
Expand Down
Loading