Skip to content

Commit

Permalink
Merge pull request #12 from waylayio/chore/regenerate-staging
Browse files Browse the repository at this point in the history
chore: regenerate registry sdk-staging (-0) 🔁
  • Loading branch information
plankthom authored Mar 29, 2024
2 parents 37e4cd4 + 73cea11 commit 0d5ceef
Show file tree
Hide file tree
Showing 1,704 changed files with 54,568 additions and 130,351 deletions.
101 changes: 91 additions & 10 deletions .github/workflows/python.yml
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
Expand All @@ -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
Expand All @@ -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/check-python-version@v4.1
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/check-python-version@v4.1
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 }}
Loading

0 comments on commit 0d5ceef

Please sign in to comment.