generated from aicoe-aiops/project-template
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Initial code drop from physrisk
Signed-off-by: Matthew Watkins <[email protected]>
- Loading branch information
1 parent
66828e9
commit 9efc7ff
Showing
91 changed files
with
6,829 additions
and
8,483 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
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
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
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
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 @@ | ||
## Related Issues and Dependencies | ||
# Related Issues and Dependencies | ||
|
||
… | ||
|
||
|
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,87 @@ | ||
--- | ||
name: "🧪 Test builds (matrix)" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
|
||
jobs: | ||
pre-release: | ||
# Don't run if pull request is NOT merged | ||
# if: github.event.pull_request.merged == true | ||
runs-on: "ubuntu-latest" | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
steps: | ||
- name: "Populate environment variables" | ||
id: setenv | ||
run: | | ||
echo "Action triggered by user: ${GITHUB_TRIGGERING_ACTOR}" | ||
set -x | ||
datetime=$(date +'%Y%m%d%H%M') | ||
export datetime | ||
echo "datetime=${datetime}" >> "$GITHUB_OUTPUT" | ||
vernum="${{ matrix.python-version }}.${datetime}" | ||
echo "vernum=${vernum}" >> "$GITHUB_OUTPUT" | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions | ||
- name: "Tag for test release" | ||
# Delete all local tags, then create a synthetic tag for testing | ||
# Use the date/time to avoid conflicts uploading to Test PyPI | ||
run: | | ||
scripts/dev-versioning.sh "${{ steps.setenv.outputs.vernum }}" | ||
git tag | xargs -L 1 | xargs git tag --delete | ||
git tag "v${{ steps.setenv.outputs.vernum }}" | ||
git checkout "tags/v${{ steps.setenv.outputs.vernum }}" | ||
grep version pyproject.toml | ||
- name: "Build with TOX (PDM backend)" | ||
run: | | ||
mkdir metadata | ||
tox -e build | ||
- name: "Save dependency graph" | ||
uses: GuillaumeFalourd/[email protected] | ||
with: | ||
command_line: pdm list --graph | ||
output_file_name: metadata/dependency-graph.txt | ||
# yamllint disable-line rule:truthy | ||
display_file_content: NO | ||
|
||
- name: "Save file listing of build directory" | ||
uses: GuillaumeFalourd/[email protected] | ||
with: | ||
command_line: ls -al dist/* | ||
output_file_name: metadata/dist-ls.txt | ||
# yamllint disable-line rule:truthy | ||
display_file_content: NO | ||
|
||
- name: Store the build metadata | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.ref_name }} | ||
path: metadata/* | ||
retention-days: 14 | ||
|
||
- name: Store the build artefacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.ref_name }} | ||
path: dist/ | ||
retention-days: 14 |
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,40 @@ | ||
--- | ||
name: "⛔️ Update dependencies" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
|
||
jobs: | ||
update-dependencies: | ||
name: "Update Python modules" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# IMPORTANT: mandatory to raise the PR | ||
id-token: write | ||
pull-requests: write | ||
repository-projects: write | ||
contents: write | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup PDM for build commands" | ||
uses: pdm-project/setup-pdm@v3 | ||
with: | ||
version: 2.10.3 | ||
|
||
- name: Update dependencies | ||
uses: pdm-project/update-deps-action@main | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
commit-message: "Chore: Update dependencies and pdm.lock" | ||
pr-title: "Update Python module dependencies" | ||
update-strategy: eager | ||
# Whether to install PDM plugins before update | ||
install-plugins: "false" |
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,50 @@ | ||
--- | ||
name: "🗒️ Build documentation" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
build_and_deploy: | ||
# Don't run if pull request is NOT merged | ||
if: github.event.pull_request.merged == true | ||
name: "Rebuild documentation" | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Setup PDM for build commands" | ||
uses: pdm-project/setup-pdm@v3 | ||
|
||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pdm export -o requirements.txt | ||
if [ -f docs/requirements.txt ]; then | ||
pip install -r docs/requirements.txt; fi | ||
- name: "Build documentation: (tox/sphinx)" | ||
run: | | ||
tox -e docs | ||
- name: "Publish documentation" | ||
if: success() | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html/ | ||
keep_files: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.