Skip to content

Commit

Permalink
ci: only disable python on self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Nov 28, 2024
1 parent 6702db4 commit 05b7fbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup-script/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,26 @@ inputs:
default: "false"
required: false
description: "Collect coverage"
setup-python:
default: "true"
required: false
description: "Setup Python"
runs:
using: 'composite'
steps:
- name: Install poetry
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: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/built-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 05b7fbd

Please sign in to comment.