Skip to content

Commit 341eaae

Browse files
committed
Add downstream tests to github actions
1 parent 3974e5e commit 341eaae

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Weekly Downstream Tests
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 1'
5+
workflow_dispatch:
6+
7+
jobs:
8+
downstream-tests:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
name:
13+
- pybind11
14+
- virtualenv
15+
- pyo3
16+
os:
17+
- id: ubuntu-latest
18+
graalpy_platform: linux-amd64
19+
- id: macos-latest
20+
graalpy_platform: darwin-aarch64
21+
22+
runs-on: ${{ matrix.os.id }}
23+
24+
steps:
25+
- name: Install CMake
26+
if: ${{ matrix.name == 'pybind11' }}
27+
uses: lukka/get-cmake@latest
28+
with:
29+
cmakeVersion: 3.30.8
30+
ninjaVersion: 1.12.1
31+
32+
- name: Install Rust toolchain
33+
if: ${{ matrix.name == 'pyo3' }}
34+
uses: actions-rs/toolchain@v1
35+
with:
36+
toolchain: stable
37+
38+
- name: Checkout main repository
39+
uses: actions/checkout@v4
40+
41+
- name: Get GraalPy EA build
42+
run: |
43+
tarball="$(curl -sfL https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/refs/heads/main/graalpy/versions/latest-native-${{ matrix.os.graalpy_platform }}.url)"
44+
curl -sfL "$tarball" | tar xz
45+
46+
- name: Run downstream tests for ${{ matrix.name }}
47+
run: python mx.graalpython/downstream_tests.py graalpy-*/bin/python ${{ matrix.name }}

0 commit comments

Comments
 (0)