Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 4368fbd

Browse files
fix(ci): correct conditional
1 parent 5d6ccb5 commit 4368fbd

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

.github/workflows/ci.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: CI
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
10+
pull_request:
11+
branches-ignore:
12+
- 'stl-preview-head/**'
13+
- 'stl-preview-base/**'
14+
15+
jobs:
16+
lint:
17+
timeout-minutes: 10
18+
name: lint
19+
runs-on: ${{ github.repository == 'stainless-sdks/llama-stack-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Install Rye
25+
run: |
26+
curl -sSf https://rye.astral.sh/get | bash
27+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
28+
env:
29+
RYE_VERSION: '0.44.0'
30+
RYE_INSTALL_OPTION: '--yes'
31+
32+
- name: Install dependencies
33+
run: rye sync --all-features
34+
35+
- name: Run lints
36+
run: ./scripts/lint
37+
38+
upload:
39+
if: github.repository == 'stainless-sdks/llama-stack-client-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
40+
timeout-minutes: 10
41+
name: upload
42+
permissions:
43+
contents: read
44+
id-token: write
45+
runs-on: depot-ubuntu-24.04
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- name: Get GitHub OIDC Token
50+
id: github-oidc
51+
uses: actions/github-script@v6
52+
with:
53+
script: core.setOutput('github_token', await core.getIDToken());
54+
55+
- name: Upload tarball
56+
env:
57+
URL: https://pkg.stainless.com/s
58+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
59+
SHA: ${{ github.sha }}
60+
run: ./scripts/utils/upload-artifact.sh
61+
62+
test:
63+
timeout-minutes: 10
64+
name: test
65+
runs-on: ${{ github.repository == 'stainless-sdks/llama-stack-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
66+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
67+
steps:
68+
- uses: actions/checkout@v4
69+
70+
- name: Install Rye
71+
run: |
72+
curl -sSf https://rye.astral.sh/get | bash
73+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
74+
env:
75+
RYE_VERSION: '0.44.0'
76+
RYE_INSTALL_OPTION: '--yes'
77+
78+
- name: Bootstrap
79+
run: ./scripts/bootstrap
80+
81+
- name: Run tests
82+
run: ./scripts/test

0 commit comments

Comments
 (0)