-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from viamrobotics/zp/update-params-updated
Fix action to work with new version of the CLI + add more tests
- Loading branch information
Showing
7 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,49 @@ | ||
on: | ||
push: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: deps | ||
run: pip install ruff | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
run: ruff upload.py | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: deps | ||
run: pip install ruff | ||
- uses: actions/checkout@v3 | ||
- name: lint | ||
run: ruff upload.py | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: upload | ||
uses: ./ | ||
with: | ||
meta-path: test/meta.json | ||
org-id: ${{ secrets.test_org_id }} | ||
do-upload: false | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} | ||
- uses: actions/checkout@v3 | ||
- name: update-only | ||
uses: ./ | ||
with: | ||
meta-path: test/meta.json | ||
do-upload: false | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} | ||
- name: upload-with-meta-path | ||
uses: ./ | ||
with: | ||
meta-path: test/meta.json | ||
module-path: test/module.tar.gz | ||
do-upload: true | ||
platform: "linux/amd64" | ||
version: "0.0.0-${{ github.run_id }}-${{ github.run_attempt }}" | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} | ||
- name: upload-no-meta-path | ||
uses: ./ | ||
with: | ||
name: upload-ci-test | ||
org-id: ${{ secrets.test_org_id }} | ||
meta-path: '' | ||
module-path: test/module.tar.gz | ||
do-upload: true | ||
do-update: false | ||
platform: "linux/amd64" | ||
version: "0.0.1-${{ github.run_id }}-${{ github.run_attempt }}" | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This is a simple test module uploaded during the github action tests defined in .github/workflows/testme.yml | ||
|
||
The module.tar.gz was created by running: | ||
|
||
```sh | ||
tar -czf module.tar.gz ./run.sh | ||
``` | ||
|
||
The meta.js points to `run.sh` so the tar command must be run from the `test` directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefile | ||
echo running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters