Skip to content

Commit

Permalink
Test Workflow for Planetary Computer Plugin (#16)
Browse files Browse the repository at this point in the history
* planetary computer test workflow

* changed to push trigger

* switch branch ref

* updated pathing

* updated test

* included new arguements

* eliminate REPO_DIR

* add back REPO_DIR

* remove push trigger and fix names

* switch to main branch

* typo fix

* reset geospatial secrets to use original credentials

---------

Co-authored-by: alianides <alianides@microsoft.com>
  • Loading branch information
alexlianides and alianides authored Aug 1, 2024
1 parent e1d747b commit e65d912
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/geospatial-images-generator-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
YAML_FOLDER_PATH: ./datagenerators/geospatial-images/datagenerator/k3s
YAML_FILE_NAME: datagenerator-geospatial-images.yaml
secrets:
GIT_HUB_USER_NAME: ${{ secrets.TEMP_GITHUB_USERNAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.TEMP_WORKFLOW_TOKEN }}
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}

build-datagenerator-geospatial-images-arm64:
Expand All @@ -50,6 +50,6 @@ jobs:
YAML_FOLDER_PATH: ./datagenerators/geospatial-images/datagenerator/k3s
YAML_FILE_NAME: datagenerator-geospatial-images.yaml
secrets:
GIT_HUB_USER_NAME: ${{ secrets.TEMP_GITHUB_USERNAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.TEMP_WORKFLOW_TOKEN }}
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}
8 changes: 4 additions & 4 deletions .github/workflows/geospatial-images-plugin-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
PROTO_FOLDER_PATH: ./datagenerators/geospatial-images/plugin/src/Protos
PROTO_FILE_NAME: GeospatialImages.proto
secrets:
GIT_HUB_USER_NAME: ${{ secrets.TEMP_GITHUB_USERNAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.TEMP_WORKFLOW_TOKEN }}
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}

build-plugin-geospatial-images-arm64:
Expand All @@ -54,6 +54,6 @@ jobs:
PROTO_FOLDER_PATH: ./datagenerators/geospatial-images/plugin/src/Protos
PROTO_FILE_NAME: GeospatialImages.proto
secrets:
GIT_HUB_USER_NAME: ${{ secrets.TEMP_GITHUB_USERNAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.TEMP_WORKFLOW_TOKEN }}
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}
50 changes: 50 additions & 0 deletions .github/workflows/planetary-computer-plugin-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: test-planetary-computer-plugin

on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- 'datagenerators/planetary-computer/plugin/**'
- '.github/workflows/planetary-computer-plugin-test.yaml'


jobs:
test-planetary-computer-plugin-amd64:
permissions:
contents: read
issues: read
checks: write
pull-requests: write

uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/test-plugin.yaml@main
with:
APP_NAME: vth
PLUGIN_NAME: planetary-computer-vth-plugin
WORKFLOW_AGENT: ubuntu-latest
DEVCONTAINER_JSON: ./.devcontainer/planetary-computer-vth-plugin/devcontainer.json
REPO_DIR: ./datagenerators/planetary-computer/plugin
secrets:
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}


test-planetary-computer-plugin-arm64:
permissions:
contents: read
issues: read
checks: write
pull-requests: write

uses: microsoft/azure-orbital-space-sdk-github-actions/.github/workflows/test-plugin.yaml@main
with:
APP_NAME: vth
PLUGIN_NAME: planetary-computer-vth-plugin
WORKFLOW_AGENT: spacesdk-ubuntu-2204LTS-arm64
DEVCONTAINER_JSON: ./.devcontainer/planetary-computer-vth-plugin/devcontainer.json
REPO_DIR: ./datagenerators/planetary-computer/plugin
secrets:
GIT_HUB_USER_NAME: ${{ secrets.GIT_HUB_USER_NAME }}
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}

0 comments on commit e65d912

Please sign in to comment.