-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into pr-osparc-orphane…
…d-containers-removal
- Loading branch information
Showing
10 changed files
with
131 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# This workflow holds jobs which are required to pass before merging into master | ||
|
||
name: PR CI | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
# https://github.blog/changelog/2023-02-08-pull-request-merge-queue-public-beta/ | ||
merge_group: | ||
branches: | ||
- "master" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
api-specs: | ||
timeout-minutes: 10 | ||
name: "check oas' are up to date" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "0.4.x" | ||
enable-cache: false | ||
- name: checkout source branch | ||
uses: actions/checkout@v4 | ||
- name: Regenerate specs and check | ||
run: | | ||
uv venv .venv && source .venv/bin/activate | ||
make openapi-specs | ||
./ci/github/helpers/openapi-specs-diff.bash diff \ | ||
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \ | ||
. | ||
api-server-backwards-compatibility: | ||
needs: api-specs | ||
timeout-minutes: 10 | ||
name: "api-server backwards compatibility" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "0.4.x" | ||
enable-cache: false | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: check api-server backwards compatibility | ||
run: | | ||
./scripts/openapi-diff.bash breaking --fail-on ERR\ | ||
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \ | ||
/specs/services/api-server/openapi.json | ||
oas-backwards-compatibility: | ||
needs: api-specs | ||
continue-on-error: true | ||
timeout-minutes: 10 | ||
name: "oas backwards compatibility" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "0.4.x" | ||
enable-cache: false | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: Check openapi-specs backwards compatibility | ||
run: | | ||
./ci/github/helpers/openapi-specs-diff.bash breaking \ | ||
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }} \ | ||
. |
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
25 changes: 25 additions & 0 deletions
25
...ore_postgres_database/migration/versions/4d007819e61a_add_license_type_to_pricing_plan.py
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 @@ | ||
"""add LICENSE type to pricing plan | ||
Revision ID: 4d007819e61a | ||
Revises: 38c9ac332c58 | ||
Create Date: 2024-12-09 14:25:45.024814+00:00 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "4d007819e61a" | ||
down_revision = "38c9ac332c58" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute(sa.DDL("ALTER TYPE pricingplanclassification ADD VALUE 'LICENSE'")) | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
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