Skip to content

Commit 2aed2bb

Browse files
committed
ci: give generation its own job ahead of the checks
1 parent 9b8e40c commit 2aed2bb

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
name: CI
1515

1616
jobs:
17-
build:
17+
generate:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v7
@@ -28,17 +28,49 @@ jobs:
2828
with:
2929
bundle: openapi-legacy.yaml
3030

31+
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
32+
33+
- uses: actions/upload-artifact@v7
34+
with:
35+
name: generated-python
36+
path: .
37+
include-hidden-files: true
38+
39+
build:
40+
needs: generate
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/download-artifact@v8
44+
with:
45+
name: generated-python
46+
3147
- uses: actions/setup-python@v7
3248
with:
3349
python-version: '3.14'
3450
cache: pip
3551

36-
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
37-
3852
- run: python -m pip install build
3953

4054
- run: python -m build
4155

56+
- uses: actions/upload-artifact@v7
57+
with:
58+
name: dist-python
59+
path: dist
60+
61+
install:
62+
needs: build
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/download-artifact@v8
66+
with:
67+
name: dist-python
68+
path: dist
69+
70+
- uses: actions/setup-python@v7
71+
with:
72+
python-version: '3.14'
73+
4274
- run: python -m pip install dist/*.whl
4375

4476
- run: python -c "import vrchatapi; print(vrchatapi.__name__)"

0 commit comments

Comments
 (0)