|
18 | 18 | lint: |
19 | 19 | timeout-minutes: 10 |
20 | 20 | name: lint |
21 | | - runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} |
| 21 | + runs-on: ubuntu-latest |
22 | 22 | if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') |
23 | 23 | steps: |
24 | 24 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
|
44 | 44 | permissions: |
45 | 45 | contents: read |
46 | 46 | id-token: write |
47 | | - runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} |
| 47 | + runs-on: ubuntu-latest |
48 | 48 | steps: |
49 | 49 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
50 | 50 |
|
|
61 | 61 |
|
62 | 62 | - name: Run build |
63 | 63 | run: rye build |
64 | | - |
65 | | - - name: Get GitHub OIDC Token |
66 | | - if: |- |
67 | | - github.repository == 'stainless-sdks/dodo-payments-python' && |
68 | | - !startsWith(github.ref, 'refs/heads/stl/') |
69 | | - id: github-oidc |
70 | | - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
71 | | - with: |
72 | | - script: core.setOutput('github_token', await core.getIDToken()); |
73 | | - |
74 | | - - name: Upload tarball |
75 | | - if: |- |
76 | | - github.repository == 'stainless-sdks/dodo-payments-python' && |
77 | | - !startsWith(github.ref, 'refs/heads/stl/') |
78 | | - env: |
79 | | - URL: https://pkg.stainless.com/s |
80 | | - AUTH: ${{ steps.github-oidc.outputs.github_token }} |
81 | | - SHA: ${{ github.sha }} |
82 | | - run: ./scripts/utils/upload-artifact.sh |
83 | | - |
84 | | - test: |
85 | | - timeout-minutes: 10 |
86 | | - name: test |
87 | | - runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} |
88 | | - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork |
89 | | - steps: |
90 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
91 | | - |
92 | | - - name: Install Rye |
93 | | - run: | |
94 | | - curl -sSf https://rye.astral.sh/get | bash |
95 | | - echo "$HOME/.rye/shims" >> $GITHUB_PATH |
96 | | - env: |
97 | | - RYE_VERSION: '0.44.0' |
98 | | - RYE_INSTALL_OPTION: '--yes' |
99 | | - |
100 | | - - name: Bootstrap |
101 | | - run: ./scripts/bootstrap |
102 | | - |
103 | | - - name: Run tests |
104 | | - run: ./scripts/test |
0 commit comments