Skip to content

Commit 03ddd52

Browse files
committed
Hack GitHub ci.yml: run multiple times
1 parent 325de01 commit 03ddd52

File tree

1 file changed

+14
-45
lines changed

1 file changed

+14
-45
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ jobs:
7676
- run: poe lint
7777
- run: poe build-develop
7878
- run: mkdir junit-xml
79+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
80+
timeout-minutes: 15
81+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
82+
timeout-minutes: 15
83+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
84+
timeout-minutes: 15
85+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
86+
timeout-minutes: 15
87+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
88+
timeout-minutes: 15
89+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
90+
timeout-minutes: 15
91+
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
92+
timeout-minutes: 15
7993
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
8094
timeout-minutes: 15
8195
# Time skipping doesn't yet support ARM
@@ -103,43 +117,6 @@ jobs:
103117
path: junit-xml
104118
retention-days: 14
105119

106-
# Confirm protos are already generated properly with older protobuf
107-
# library and run test with that older version. We must downgrade protobuf
108-
# so we can generate 3.x and 4.x compatible API. We have to use older
109-
# Python to run this check because the grpcio-tools version we use
110-
# is <= 3.10.
111-
- name: Check generated protos and test protobuf 3.x
112-
if: ${{ matrix.protoCheckTarget }}
113-
env:
114-
TEMPORAL_TEST_PROTO3: 1
115-
run: |
116-
uv add --python 3.9 "protobuf<4"
117-
uv sync --all-extras
118-
poe build-develop
119-
poe gen-protos
120-
poe format
121-
[[ -z $(git status --porcelain temporalio) ]] || (git diff temporalio; echo "Protos changed"; exit 1)
122-
poe test -s
123-
timeout-minutes: 10
124-
125-
# Do docs stuff (only on one host)
126-
- name: Build API docs
127-
if: ${{ matrix.docsTarget }}
128-
run: poe gen-docs
129-
- name: Deploy prod API docs
130-
if: ${{ github.ref == 'refs/heads/main' && matrix.docsTarget }}
131-
env:
132-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
133-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
134-
run: npx vercel deploy build/apidocs -t ${{ secrets.VERCEL_TOKEN }} --prod --yes
135-
136-
# Confirm README ToC is generated properly
137-
- uses: actions/setup-node@v4
138-
- name: Check generated README ToC
139-
if: ${{ matrix.docsTarget }}
140-
run: |
141-
npx doctoc README.md
142-
[[ -z $(git status --porcelain README.md) ]] || (git diff README.md; echo "README changed"; exit 1)
143120
test-latest-deps:
144121
timeout-minutes: 30
145122
runs-on: ubuntu-latest
@@ -175,11 +152,3 @@ jobs:
175152
name: junit-xml--${{github.run_id}}--${{github.run_attempt}}--latest-deps--time-skipping
176153
path: junit-xml
177154
retention-days: 14
178-
179-
# Runs the sdk features repo tests with this repo's current SDK code
180-
features-tests:
181-
uses: temporalio/features/.github/workflows/python.yaml@main
182-
with:
183-
python-repo-path: ${{github.event.pull_request.head.repo.full_name}}
184-
version: ${{github.event.pull_request.head.ref}}
185-
version-is-repo-ref: true

0 commit comments

Comments
 (0)