Add Github Actions CI
This includes:
* gerrit-verify workflow to verify PRs
* release workflow for pypi release
* dependabot settings to keep actions up to date
* github2gerrit workflow to allow GH PRs to create Gerrit patches
(required for dependabot updates)
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: Ie90db57f1192cdeabd92f3e7daaf97c515241c0f
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..598e2e9
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,33 @@
+---
+name: PyPI release
+
+# yamllint disable-line rule:truthy
+on:
+ push:
+ # Only invoked on release tag pushes
+ tags:
+ - v*.*.*
+
+env:
+ python-version: 3.10
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ # yamllint disable-line rule:line-length
+ uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+
+ - name: Configure Python
+ # yamllint disable-line rule:line-length
+ uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
+ with:
+ python-version: ${{ env.python-version }}
+
+ - name: Build package distribution files
+ uses: opencord/shared-workflows/.github/workflows/verify-unit-tests.yaml@main
+ with:
+ pypi-username: ${{ secrets.PYPI_USERNAME }}
+ pypi-password: ${{ secrets.PYPI_PASSWORD }}
+ prep-commands: "make python-protos"