-
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 #19 from aws-solutions-library-samples/dev
release: updating integration test package
- Loading branch information
Showing
45 changed files
with
49,042 additions
and
1,984 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,9 +1,14 @@ | ||
name: Docs | ||
on: [push, pull_request, workflow_dispatch] | ||
name: Generate and Publish Documentation for OSML Model Runner Test | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -13,14 +18,14 @@ jobs: | |
pip install sphinx | ||
python -m pip install sphinx-autoapi | ||
python -m pip install sphinx_rtd_theme | ||
python -m pip install tox tox-gh-actions | ||
- name: Sphinx build | ||
run: | | ||
sphinx-build doc _build | ||
tox -e docs | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: _build/ | ||
publish_dir: .tox/docs/tmp/html/ | ||
force_orphan: true |
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,18 @@ | ||
name: Notify Guidance Overhead Imagery Repo | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Short Sha | ||
uses: benjlevesque/[email protected] | ||
- name: Invoke Guidance OSML Submodule Workflow | ||
uses: benc-uk/[email protected] | ||
with: | ||
repo: aws-solutions-library-samples/guidance-for-overhead-imagery-inference-on-aws | ||
workflow: osml_update_submodules.yml | ||
token: ${{ secrets.GUIDANCE_OSML_SUBMODULES_ACTION_10_24 }} | ||
inputs: '{ "DISPATCH_REPO_NAME" : "${{ github.event.repository.name }}", "DISPATCH_REPO_SHA": "${{ env.SHA }}" }' |
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,10 @@ | ||
name: "OSML Model Runner Test Build Workflow" | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "dev"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit |
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,22 @@ | ||
name: "OSML Model Runner Test Build and Publish Workflow" | ||
|
||
on: | ||
push: | ||
branches: ["main", "dev"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit | ||
Publish_Python: | ||
needs: [Build_Validate_Tox] | ||
uses: ./.github/workflows/python-publish.yml | ||
secrets: inherit | ||
Publish_Documentation: | ||
needs: [Build_Validate_Tox] | ||
uses: ./.github/workflows/documentation-publish.yml | ||
secrets: inherit | ||
Notify_Guidance_Repo: | ||
needs: [Build_Validate_Tox] | ||
uses: ./.github/workflows/notify-guidance-repo.yml | ||
secrets: inherit |
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,33 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
name: Publish Python Package | ||
|
||
on: | ||
workflow_call: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
environment: release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/[email protected] |
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,30 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Build/Validation with Tox | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: 'true' | ||
ssh-key: ${{ secrets.git_ssh_key }} | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip tox | ||
- name: Validate package with tox | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
tox |
Oops, something went wrong.