Skip to content

Commit 1213b6e

Browse files
committed
disable new actions
1 parent 263deed commit 1213b6e

File tree

3 files changed

+162
-90
lines changed

3 files changed

+162
-90
lines changed

.github/publish-python-sdk.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#
2+
# This file is intentionally in the wrong dir, will move and add later....
3+
#
4+
5+
# name: publish-python-sdk
6+
7+
# on:
8+
# release:
9+
# types: [published]
10+
# workflow_dispatch:
11+
12+
# jobs:
13+
# publish:
14+
# runs-on: ubuntu-latest
15+
# permissions:
16+
# contents: read
17+
# steps:
18+
# - name: Checkout repository
19+
# uses: actions/checkout@v4
20+
21+
# - name: Setup Bun
22+
# uses: oven-sh/setup-bun@v1
23+
# with:
24+
# bun-version: 1.2.21
25+
26+
# - name: Install dependencies (JS/Bun)
27+
# run: bun install
28+
29+
# - name: Install uv
30+
# shell: bash
31+
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
32+
33+
# - name: Generate Python SDK from OpenAPI (CLI)
34+
# shell: bash
35+
# run: |
36+
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
37+
38+
# - name: Sync Python dependencies
39+
# shell: bash
40+
# run: |
41+
# ~/.local/bin/uv sync --dev --project packages/sdk/python
42+
43+
# - name: Set version from release tag
44+
# shell: bash
45+
# run: |
46+
# TAG="${GITHUB_REF_NAME:-}"
47+
# if [ -z "$TAG" ]; then
48+
# TAG="$(git describe --tags --abbrev=0 || echo 0.0.0)"
49+
# fi
50+
# echo "Using version: $TAG"
51+
# VERSION="$TAG" ~/.local/bin/uv run --project packages/sdk/python python - <<'PY'
52+
# import os, re, pathlib
53+
# root = pathlib.Path('packages/sdk/python')
54+
# pt = (root / 'pyproject.toml').read_text()
55+
# version = os.environ.get('VERSION','0.0.0').lstrip('v')
56+
# pt = re.sub(r'(?m)^(version\s*=\s*")[^"]+("\s*)$', f"\\1{version}\\2", pt)
57+
# (root / 'pyproject.toml').write_text(pt)
58+
# # Also update generator config override for consistency
59+
# cfgp = root / 'openapi-python-client.yaml'
60+
# if cfgp.exists():
61+
# cfg = cfgp.read_text()
62+
# cfg = re.sub(r'(?m)^(package_version_override:\s*)\S+$', f"\\1{version}", cfg)
63+
# cfgp.write_text(cfg)
64+
# PY
65+
66+
# - name: Build and publish to PyPI
67+
# env:
68+
# PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
69+
# shell: bash
70+
# run: |
71+
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/publish.py
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
name: publish-python-sdk
1+
# name: publish-python-sdk
22

3-
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
3+
# on:
4+
# release:
5+
# types: [published]
6+
# workflow_dispatch:
77

8-
jobs:
9-
publish:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
8+
# jobs:
9+
# publish:
10+
# runs-on: ubuntu-latest
11+
# permissions:
12+
# contents: read
13+
# steps:
14+
# - name: Checkout repository
15+
# uses: actions/checkout@v4
1616

17-
- name: Setup Bun
18-
uses: oven-sh/setup-bun@v1
19-
with:
20-
bun-version: 1.2.21
17+
# - name: Setup Bun
18+
# uses: oven-sh/setup-bun@v1
19+
# with:
20+
# bun-version: 1.2.21
2121

22-
- name: Install dependencies (JS/Bun)
23-
run: bun install
22+
# - name: Install dependencies (JS/Bun)
23+
# run: bun install
2424

25-
- name: Install uv
26-
shell: bash
27-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
25+
# - name: Install uv
26+
# shell: bash
27+
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
2828

29-
- name: Generate Python SDK from OpenAPI (CLI)
30-
shell: bash
31-
run: |
32-
~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
29+
# - name: Generate Python SDK from OpenAPI (CLI)
30+
# shell: bash
31+
# run: |
32+
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
3333

34-
- name: Sync Python dependencies
35-
shell: bash
36-
run: |
37-
~/.local/bin/uv sync --dev --project packages/sdk/python
34+
# - name: Sync Python dependencies
35+
# shell: bash
36+
# run: |
37+
# ~/.local/bin/uv sync --dev --project packages/sdk/python
3838

39-
- name: Set version from release tag
40-
shell: bash
41-
run: |
42-
TAG="${GITHUB_REF_NAME:-}"
43-
if [ -z "$TAG" ]; then
44-
TAG="$(git describe --tags --abbrev=0 || echo 0.0.0)"
45-
fi
46-
echo "Using version: $TAG"
47-
VERSION="$TAG" ~/.local/bin/uv run --project packages/sdk/python python - <<'PY'
48-
import os, re, pathlib
49-
root = pathlib.Path('packages/sdk/python')
50-
pt = (root / 'pyproject.toml').read_text()
51-
version = os.environ.get('VERSION','0.0.0').lstrip('v')
52-
pt = re.sub(r'(?m)^(version\s*=\s*")[^"]+("\s*)$', f"\\1{version}\\2", pt)
53-
(root / 'pyproject.toml').write_text(pt)
54-
# Also update generator config override for consistency
55-
cfgp = root / 'openapi-python-client.yaml'
56-
if cfgp.exists():
57-
cfg = cfgp.read_text()
58-
cfg = re.sub(r'(?m)^(package_version_override:\s*)\S+$', f"\\1{version}", cfg)
59-
cfgp.write_text(cfg)
60-
PY
39+
# - name: Set version from release tag
40+
# shell: bash
41+
# run: |
42+
# TAG="${GITHUB_REF_NAME:-}"
43+
# if [ -z "$TAG" ]; then
44+
# TAG="$(git describe --tags --abbrev=0 || echo 0.0.0)"
45+
# fi
46+
# echo "Using version: $TAG"
47+
# VERSION="$TAG" ~/.local/bin/uv run --project packages/sdk/python python - <<'PY'
48+
# import os, re, pathlib
49+
# root = pathlib.Path('packages/sdk/python')
50+
# pt = (root / 'pyproject.toml').read_text()
51+
# version = os.environ.get('VERSION','0.0.0').lstrip('v')
52+
# pt = re.sub(r'(?m)^(version\s*=\s*")[^"]+("\s*)$', f"\\1{version}\\2", pt)
53+
# (root / 'pyproject.toml').write_text(pt)
54+
# # Also update generator config override for consistency
55+
# cfgp = root / 'openapi-python-client.yaml'
56+
# if cfgp.exists():
57+
# cfg = cfgp.read_text()
58+
# cfg = re.sub(r'(?m)^(package_version_override:\s*)\S+$', f"\\1{version}", cfg)
59+
# cfgp.write_text(cfg)
60+
# PY
6161

62-
- name: Build and publish to PyPI
63-
env:
64-
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
65-
shell: bash
66-
run: |
67-
~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/publish.py
62+
# - name: Build and publish to PyPI
63+
# env:
64+
# PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
65+
# shell: bash
66+
# run: |
67+
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/publish.py

.github/workflows/typecheck.yml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,36 @@ jobs:
1818
- name: Run typecheck
1919
run: bun typecheck
2020

21-
python-sdk:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v4
26-
27-
- name: Setup Bun
28-
uses: oven-sh/setup-bun@v1
29-
with:
30-
bun-version: 1.2.21
31-
32-
- name: Install dependencies (JS/Bun)
33-
run: bun install
34-
35-
- name: Install uv
36-
shell: bash
37-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
38-
39-
- name: Generate Python SDK
40-
shell: bash
41-
run: |
42-
~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
43-
44-
- name: Sync Python deps
45-
shell: bash
46-
run: |
47-
~/.local/bin/uv sync --dev --project packages/sdk/python
48-
49-
- name: Run Python tests
50-
shell: bash
51-
run: |
52-
~/.local/bin/uv run --project packages/sdk/python pytest -q
21+
# Add later
22+
# python-sdk:
23+
# runs-on: ubuntu-latest
24+
# steps:
25+
# - name: Checkout repository
26+
# uses: actions/checkout@v4
27+
28+
# - name: Setup Bun
29+
# uses: oven-sh/setup-bun@v1
30+
# with:
31+
# bun-version: 1.2.21
32+
33+
# - name: Install dependencies (JS/Bun)
34+
# run: bun install
35+
36+
# - name: Install uv
37+
# shell: bash
38+
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
39+
40+
# - name: Generate Python SDK
41+
# shell: bash
42+
# run: |
43+
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
44+
45+
# - name: Sync Python deps
46+
# shell: bash
47+
# run: |
48+
# ~/.local/bin/uv sync --dev --project packages/sdk/python
49+
50+
# - name: Run Python tests
51+
# shell: bash
52+
# run: |
53+
# ~/.local/bin/uv run --project packages/sdk/python pytest -q

0 commit comments

Comments
 (0)