Fixing the CI to also run in release when it's a tag ?

This commit is contained in:
Nicolas Patry 2024-06-28 08:53:14 +02:00
parent 74b0231b19
commit 488ddee64d
No known key found for this signature in database
GPG Key ID: E939E8CC91A1C674

View File

@ -157,7 +157,7 @@ jobs:
runs-on: ["self-hosted", "${{ needs.build-and-push.outputs.runs_on }}", "multi-gpu"]
if: needs.build-and-push.outputs.runs_on != 'ubuntu-latest'
env:
PYTEST_FLAGS: ${{ github.ref == 'refs/heads/main' && '--release' || '' }}
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') && '--release' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4