Skip to content

Commit 90ce234

Browse files
committed
more
1 parent eea7749 commit 90ce234

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ jobs:
306306
- name: Setup Ruby
307307
uses: ./.github/actions/setup_ruby
308308

309-
- name: Build workspace with all features
309+
- name: Build workspace with
310310
run: cargo build --all
311311

312312
- name: Trunk Check

.github/workflows/pyo3.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,39 @@ jobs:
8383
with:
8484
name: wheels-linux-${{ matrix.platform.target }}
8585
path: dist
86+
87+
- name: Upload wheel package to S3
88+
uses: ./.github/actions/upload_to_s3
89+
if: "!cancelled() && github.event_name != 'pull_request'"
90+
with:
91+
bucket: ${{ secrets.S3_ASSET_BUCKET }}
92+
name: linux-${{ matrix.platform.target }}
93+
path: dist
94+
s3-flags: --recursive
95+
role-to-assume: ${{ secrets.S3_UPLOAD_ROLE_ARN }}
96+
date: ${{ needs.get-date-sha.outputs.date }}
97+
sha: ${{ needs.get-date-sha.outputs.sha }}
98+
99+
linux-pytest:
100+
needs: [linux]
101+
runs-on: ${{ matrix.platform.runner }}
102+
strategy:
103+
fail-fast: false
104+
matrix:
105+
platform:
106+
- runner: ubuntu-latest
107+
target: x86_64
108+
- runner: ubuntu-latest
109+
target: aarch64
110+
steps:
111+
- uses: actions/checkout@v4
112+
113+
- name: Download wheels
114+
uses: actions/download-artifact@v4
115+
with:
116+
name: wheels-linux-${{ matrix.platform.target }}
117+
path: dist
118+
86119
- name: pytest
87120
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
88121
shell: bash
@@ -95,6 +128,7 @@ jobs:
95128
uv pip install -r requirements-dev.txt
96129
uv pip install context-py --find-links ../dist --force-reinstall
97130
pytest --cov
131+
98132
- name: pytest
99133
if: ${{ startsWith(matrix.platform.target, 'aarch64') }}
100134
uses: uraimo/run-on-arch-action@v2
@@ -122,18 +156,6 @@ jobs:
122156
slug: trunk-io/analytics-cli
123157
directory: ./context-py
124158

125-
- name: Upload wheel package to S3
126-
uses: ./.github/actions/upload_to_s3
127-
if: "!cancelled() && github.event_name != 'pull_request'"
128-
with:
129-
bucket: ${{ secrets.S3_ASSET_BUCKET }}
130-
name: linux-${{ matrix.platform.target }}
131-
path: dist
132-
s3-flags: --recursive
133-
role-to-assume: ${{ secrets.S3_UPLOAD_ROLE_ARN }}
134-
date: ${{ needs.get-date-sha.outputs.date }}
135-
sha: ${{ needs.get-date-sha.outputs.sha }}
136-
137159
macos:
138160
needs: [get-date-sha]
139161
runs-on: ${{ matrix.platform.runner }}

0 commit comments

Comments
 (0)