Skip to content

Commit

Permalink
[BLD]: use Depot for building Tilt images in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Dec 27, 2024
1 parent 46423f8 commit 3bf63c6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/actions/tilt/action.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
name: Start Tilt services
description: "This action starts Tilt services"
inputs:
depot-project-id:
description: "Depot project ID"
required: true
depot-token:
description: "Depot token"
required: true
runs:
using: "composite"
steps:
- name: Set up Depot CLI
uses: depot/setup-action@v1
- name: Use Depot builder for Tilt images
shell: bash
run: |
depot configure-docker --project $DEPOT_PROJECT_ID --token $DEPOT_TOKEN
env:
DEPOT_PROJECT_ID: ${{ inputs.depot-project-id }}
DEPOT_TOKEN: ${{ inputs.depot-token }}
- name: Install Tilt
shell: bash
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
- uses: ./.github/actions/tilt
with:
depot-project-id: ${{ vars.DEPOT_PROJECT_ID }}
depot-token: ${{ secrets.DEPOT_TOKEN }}
- name: Test
run: bin/cluster-test.sh bash -c 'python -m pytest "${{ matrix.test-globs }}"'
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
needs: paths-filter
if: needs.paths-filter.outputs.outside-docs == 'true'
uses: ./.github/workflows/_python-tests.yml
secrets: inherit
with:
property_testing_preset: 'fast'

Expand Down

0 comments on commit 3bf63c6

Please sign in to comment.