From 2c05b27fa9a4031d8ede57d0089dade7114eba90 Mon Sep 17 00:00:00 2001 From: Steve Schmerler Date: Fri, 19 Jul 2024 22:25:15 +0200 Subject: [PATCH] CI: install meson build backend for f2py --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69cc5b9c..9334bc35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,11 @@ jobs: strategy: matrix: python-version: - - "3.8" - ##- "3.9" - ##- "3.10" + - "3.9" + - "3.10" - "3.11" - fail-fast: true + - "3.12" + fail-fast: false steps: - name: checkout @@ -39,13 +39,16 @@ jobs: run: | sudo apt update - # For Fortran extensions + # For Fortran extensions. ninja is needed by meson. sudo apt install -y --no-install-recommends \ - python3-dev gfortran liblapack-dev + python3-dev gfortran liblapack-dev ninja-build sudo apt install -y --no-install-recommends \ lammps quantum-espresso + # The meson Ubuntu package is outdated, so install via pip. + sudo pip install meson + pip install -e . pip install -r requirements_optional.txt pip install -r requirements_test.txt @@ -74,14 +77,15 @@ jobs: run: | sudo apt update - # For Fortran extensions + # For Fortran extensions. ninja is needed by meson. sudo apt install -y --no-install-recommends \ - python3-dev gfortran liblapack-dev + python3-dev gfortran liblapack-dev ninja-build # sphinx related pip install -r requirements_doc.txt # sphinx-autodoc needs target package to be installed + sudo pip install meson pip install -e . - name: build