Skip to content

Commit eba30ee

Browse files
committed
Fix compat tests
1 parent b694bca commit eba30ee

4 files changed

Lines changed: 35 additions & 15 deletions

File tree

.github/workflows/test-compat-conda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Test Conda compatibility and regressions
33
on:
44
schedule:
55
- cron: "0 2 * * 0"
6+
pull_request:
7+
branches:
8+
- main
69
workflow_dispatch:
710

811
jobs:

.github/workflows/test-compat-venv-apt.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test compatibility on Ubuntu with venv/apt
33
on:
44
schedule:
55
- cron: "0 3 * * 0"
6-
push:
6+
pull_request:
77
branches:
8-
- issue-1144-new-continuous-integration
8+
- main
99
workflow_dispatch:
1010

1111
jobs:
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Install dependencies
3030
run: |
31-
apt-get install -y gcc g++ gfortran python3 python3-dev pkg-config curl patch tar unnzip gzip bzip2 xz-utils perl bison make cmake libopenmpi-dev openmpi-bin libgsl-dev libfftw3-dev libgmp3-dev libmpfr6 libmpfr-dev libhdf5-dev hdf5-tools libnetcdf-dev libqhull-dev libhealpix-cxx-dev liblapack-dev libblas-dev
31+
sudo apt-get install -y gcc g++ gfortran python3 python3-dev pkg-config curl patch tar unzip gzip bzip2 xz-utils perl bison make cmake libopenmpi-dev openmpi-bin libgsl-dev libfftw3-dev libgmp3-dev libmpfr6 libmpfr-dev libhdf5-dev hdf5-tools libnetcdf-dev libqhull-dev libhealpix-cxx-dev liblapack-dev libblas-dev
3232
3333
- name: Checkout
3434
uses: actions/checkout@v4
@@ -37,7 +37,12 @@ jobs:
3737
fetch-tags: true
3838

3939
- name: Create virtualenv
40-
run: python3 -m venv venv
40+
run: |
41+
python3 -m venv venv
42+
. venv/bin/activate && python3 -m pip install pip wheel pytest
43+
44+
- name: Check set-up
45+
run: . venv/bin/activate && ./setup
4146

4247
- name: Build everything we can
4348
run: . venv/bin/activate && ./setup install all

.github/workflows/test-compat-venv-homebrew.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test compatibility on macOS with venv/Homebrew
33
on:
44
schedule:
55
- cron: "0 4 * * 0"
6-
push:
6+
pull_request:
77
branches:
8-
- issue-1144-new-continuous-integration
8+
- main
99
workflow_dispatch:
1010

1111
jobs:
@@ -36,7 +36,12 @@ jobs:
3636
fetch-tags: true
3737

3838
- name: Create virtualenv
39-
run: python3 -m venv venv
39+
run: |
40+
python3 -m venv venv
41+
. venv/bin/activate && python3 -m pip install pip wheel pytest
42+
43+
- name: Check set-up
44+
run: . venv/bin/activate && ./setup
4045

4146
- name: Build everything we can
4247
run: . venv/bin/activate && ./setup install all

.github/workflows/test-compat-venv-macports.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Test compatibility on macOS with venv/MacPorts
22

33
on:
4-
schedul:
4+
schedule:
55
- cron: "0 6 * * 0"
6-
push:
6+
pull_request:
77
branches:
8-
- issue-1144-new-continuous-integration
8+
- main
99
workflow_dispatch:
1010

1111
jobs:
@@ -25,12 +25,17 @@ jobs:
2525
shell: bash -el {0}
2626

2727
steps:
28+
29+
- name: Install MacPorts
30+
uses: melusina-org/setup-macports@v1
31+
id: macports
32+
2833
- name: Install dependencies
2934
run: |
30-
sudo port install gcc12 python312 pkgconfig curl gpatch gnutar unzip gzip bzip2 xz perl5 gmake cmake mpich-gcc12 gsl fftw-3 gmp mpfr hdf5 netcdf netcdf-fortran qhull healpix-cxx openblas lapack zlib
31-
sudo port select --set gcc mp-gcc12
32-
sudo port select --set python3 python312
33-
sudo port select --set mpi mpich-gcc12
35+
sudo port install gcc13 python314 pkgconfig curl gpatch gnutar unzip gzip bzip2 xz perl5 gmake cmake mpich-gcc13 gsl fftw-3 gmp mpfr hdf5 netcdf netcdf-fortran qhull healpix-cxx openblas lapack zlib
36+
sudo port select --set gcc mp-gcc13
37+
sudo port select --set python3 python314
38+
sudo port select --set mpi mpich-gcc13
3439
3540
- name: Checkout
3641
uses: actions/checkout@v4
@@ -39,7 +44,9 @@ jobs:
3944
fetch-tags: true
4045

4146
- name: Create virtualenv
42-
run: python3 -m venv venv
47+
run: |
48+
python3 -m venv venv
49+
. venv/bin/activate && python3 -m pip install pip wheel pytest
4350
4451
- name: Build everything we can
4552
run: . venv/bin/activate && ./setup install all

0 commit comments

Comments
 (0)