-
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.
build: updating to use trunk based development
- Loading branch information
Showing
10 changed files
with
210 additions
and
260 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
tox: | ||
uses: ./.github/workflows/tox.yml | ||
secrets: inherit | ||
docker-build: | ||
uses: ./.github/workflows/docker-build.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Generate and Publish Documentation for OSML Model Runner Test | ||
name: docs | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -8,22 +8,20 @@ permissions: | |
|
||
jobs: | ||
docs: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- name: Install dependencies | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Build Docs | ||
run: | | ||
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: | | ||
tox -e docs | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
- uses: peaceiris/[email protected] | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
12 changes: 6 additions & 6 deletions
12
.github/workflows/notify-guidance-repo.yml → .github/workflows/notify.yml
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,18 +1,18 @@ | ||
name: Notify Guidance Overhead Imagery Repo | ||
name: notify | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: ["main"] | ||
|
||
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] | ||
- uses: benjlevesque/[email protected] | ||
- uses: benc-uk/[email protected] | ||
with: | ||
repo: aws-solutions-library-samples/guidance-for-overhead-imagery-inference-on-aws | ||
workflow: osml_update_submodules.yml | ||
ref: dev | ||
token: ${{ secrets.GUIDANCE_OSML_SUBMODULES_ACTION_10_24 }} | ||
inputs: '{ "DISPATCH_REPO_NAME" : "${{ github.event.repository.name }}", "DISPATCH_REPO_SHA": "${{ env.SHA }}" }' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
# 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: pypi | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Build Package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
python -m build | ||
- uses: pypa/[email protected] |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
tox: | ||
uses: ./.github/workflows/tox.yml | ||
secrets: inherit | ||
docker-build: | ||
uses: ./.github/workflows/docker-build.yml | ||
secrets: inherit | ||
pypi: | ||
needs: [tox, docker-build] | ||
uses: ./.github/workflows/pypi.yml | ||
secrets: inherit | ||
docker-publish: | ||
needs: [tox, docker-build] | ||
uses: ./.github/workflows/docker-publish.yml | ||
secrets: inherit | ||
docs: | ||
needs: [pypi, docker-publish] | ||
uses: ./.github/workflows/docs.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
Oops, something went wrong.