Skip to content

Commit 01bdde8

Browse files
committed
CI: fix the graviton job
1 parent d7b541a commit 01bdde8

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

.cirun.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runners:
77
region: "us-east-1"
88
# Cheapest VM on AWS
99
instance_type: "c7g.large"
10-
# Ubuntu-22.04, ami image
11-
machine_image: "ami-0a0c8eebcdd6dcbd0"
10+
# Ubuntu-24.04, ami image
11+
machine_image: "ami-0eac975a54dfee8cb"
1212
preemptible: false
1313
# Add this label in the "runs-on" param in .github/workflows/<workflow-name>.yml
1414
# So that this runner is created for running the workflow

.github/workflows/run_cirun_graviton.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,30 @@ jobs:
4747
run: |
4848
if [ "$RUNNER_OS" == "Linux" ]; then
4949
sudo apt update
50-
sudo apt-get install -y gfortran cmake ccache libtinfo5 python3-pip pkg-config
50+
sudo apt-get install -y gfortran cmake ccache python3-pip pkg-config
5151
else
5252
echo "::error::$RUNNER_OS not supported"
5353
exit 1
5454
fi
5555
5656
- name: Install python dependencies
5757
run: |
58-
pip3 install numpy meson meson-python ninja build asv virtualenv
58+
pip3 install "numpy<2" meson meson-python ninja build asv virtualenv --break-system-packages
5959
# pip3 install scipy_openblas32
6060
# install the nightly OpenBLAS wheel
61-
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy-openblas32
61+
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy-openblas32 --break-system-packages
6262
python3 -c'import scipy_openblas32 as so; print(so.get_pkg_config())' > scipy_openblas.pc
6363
export PKG_CONFIG_PATH=$PWD
6464
echo ">>>> PKG_CONFIG" $PKG_CONFIG_PATH
6565
cat scipy_openblas.pc
6666
67+
echo ">>> mesonpy"
68+
python3 -c'import mesonpy; print(mesonpy.__file__)'
69+
echo $PATH
70+
echo $PYTHONPATH
71+
6772
- name: Set and log asv machine configuration
6873
run: |
69-
cd benchmark/pybench/asv
7074
python3 -m asv machine --yes --config asv.conf.json
7175
echo "Machine Configuration:"
7276
cat ~/.asv-machine.json
@@ -79,8 +83,9 @@ jobs:
7983
- name: Run benchmarks
8084
run: |
8185
echo ${{ github.workspace}}
82-
cd benchmark/pybench/asv
86+
python3 -c"import mesonpy; print(mesonpy.__file__)"
8387
python3 -m asv run --config $ASV_CONFIG -v
8488
env:
8589
PKG_CONFIG_PATH: ${{ github.workspace }}
90+
PYTHONPATH: ${{ github.workspace }} # FIXME
8691

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
build-backend = "mesonpy"
33
requires = [
44
"meson-python>=0.16.0",
5-
"numpy",
5+
"meson",
6+
"ninja",
7+
"numpy<2",
68
"scipy_openblas32"
79
]
810

0 commit comments

Comments
 (0)