-
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 #12 from waylayio/chore/regenerate-staging
chore: regenerate registry sdk-staging (-0) 🔁
- Loading branch information
Showing
1,704 changed files
with
54,568 additions
and
130,351 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,22 +1,19 @@ | ||
# NOTE: This file is auto generated by OpenAPI Generator. | ||
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Waylay Registry Python package | ||
name: Waylay Registry CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: [ "main", "staging", "release/**" ] | ||
tags: | ||
- '**' | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ "main", "staging", "release/**" ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -33,13 +30,13 @@ jobs: | |
- name: code qa | ||
run: make ci-code-qa | ||
- name: unit tests | ||
run: make test | ||
run: make ci-test | ||
|
||
test-minimal: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Git with token to access other private repositories | ||
|
@@ -53,4 +50,88 @@ jobs: | |
- name: install dependencies | ||
run: make ci-install-api | ||
- name: unit tests | ||
run: make test | ||
run: make ci-test | ||
|
||
publish-api: | ||
needs: | ||
- test | ||
- test-minimal | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
|
||
defaults: | ||
run: | ||
working-directory: ./waylay-sdk-registry | ||
|
||
name: Publish api package to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/waylay-sdk-registry | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Install pypa/build | ||
run: pip install build | ||
- name: check version | ||
id: check-tag | ||
uses: samuelcolvin/[email protected] | ||
with: | ||
version_file_path: waylay-sdk-registry/src/waylay/services/registry/service/__init__.py | ||
- name: Build | ||
run: python3 -m build | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: waylay-sdk-registry/dist | ||
|
||
publish-types: | ||
needs: | ||
- test | ||
- test-minimal | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
|
||
defaults: | ||
run: | ||
working-directory: ./waylay-sdk-registry-types | ||
|
||
name: Publish types package to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/waylay-sdk-registry-types | ||
|
||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Install pypa/build | ||
run: pip install build | ||
- name: check version | ||
id: check-tag | ||
uses: samuelcolvin/[email protected] | ||
with: | ||
version_file_path: waylay-sdk-registry-types/src/waylay/services/registry/models/__init__.py | ||
- name: Build | ||
run: python3 -m build | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: waylay-sdk-registry-types/dist | ||
password: ${{ secrets.PYPI_TYPES_PKG_API_TOKEN }} |
Oops, something went wrong.