-
Notifications
You must be signed in to change notification settings - Fork 149
65 lines (56 loc) · 1.87 KB
/
downstream-tests.yml
File metadata and controls
65 lines (56 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Weekly Downstream Tests
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
downstream-tests:
strategy:
fail-fast: false
matrix:
name:
- pybind11
- virtualenv
- pyo3
- pydantic-core
- jiter
os:
- id: ubuntu-latest
platform: linux
arch: amd64
- id: macos-latest
platform: darwin
arch: aarch64
runs-on: ${{ matrix.os.id }}
steps:
- name: Install CMake (Linux)
if: ${{ matrix.os.platform == 'linux' && matrix.name == 'pybind11' }}
run: |
sudo apt-get update
sudo apt-get install -y cmake
- name: Install CMake (Darwin)
if: ${{ matrix.os.platform == 'darwin' && matrix.name == 'pybind11' }}
run: |
if brew list cmake >/dev/null 2>&1; then
echo "cmake already installed"
else
brew install cmake
fi
- name: Install Rust toolchain
if: ${{ matrix.name == 'pyo3' || matrix.name == 'pydantic-core' || matrix.name == 'jiter' }}
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
- name: Install uv
if: ${{ matrix.name == 'pydantic-core' }}
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Checkout main repository
uses: actions/checkout@v4
- name: Get GraalPy EA build
run: |
tarball="$(curl -sfL https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/refs/heads/main/graalpy/versions/latest-native-${{ matrix.os.platform }}-${{ matrix.os.arch}}.url)"
curl -sfL "$tarball" | tar xz
- name: Run downstream tests for ${{ matrix.name }}
run: python mx.graalpython/downstream_tests.py graalpy-*/bin/python ${{ matrix.name }}