diff --git a/.github/actions/hps_services/action.yml b/.github/actions/hps_services/action.yml index 788dc6d68..f00cc761e 100644 --- a/.github/actions/hps_services/action.yml +++ b/.github/actions/hps_services/action.yml @@ -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' @@ -85,6 +89,8 @@ runs: - name: Start services (internal package) if: ${{ inputs.version == 'latest-dev' }} + env: + PROFILE: ${{ inputs.profile }} shell: bash run: | echo "$(pwd)" @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9dc4c9b78..510240173 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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