diff --git a/.github/actions/setup-script/action.yml b/.github/actions/setup-script/action.yml index edcde2cc3..12391d984 100644 --- a/.github/actions/setup-script/action.yml +++ b/.github/actions/setup-script/action.yml @@ -15,6 +15,10 @@ inputs: default: "false" required: false description: "Collect coverage" + setup-python: + default: "true" + required: false + description: "Setup Python" runs: using: 'composite' steps: @@ -22,7 +26,15 @@ runs: shell: bash run: pipx install poetry + - name: Setup Python + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + with: + python-version: '3.12' + check-latest: true + cache: poetry + - name: Add python dependencies + if: ${{ inputs.setup-python == 'true' }} shell: bash working-directory: ./scripts run: | diff --git a/.github/workflows/built-tests.yml b/.github/workflows/built-tests.yml index 5303c2b23..3b7bb08da 100644 --- a/.github/workflows/built-tests.yml +++ b/.github/workflows/built-tests.yml @@ -109,6 +109,7 @@ jobs: script: 'tests.py --${{ matrix.test }}' report: 'true' coverage: 'true' + setup-python: {{ matrix.os != 'self-hosted' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}