Skip to content

Commit 199629f

Browse files
committed
Add new all-up test that runs weekly to check for compatibility issues
1 parent ad52a21 commit 199629f

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Test Conda compatibility and regressions
2+
3+
on:
4+
schedule:
5+
- cron: "0 2 * * 0"
6+
push:
7+
branches:
8+
- issue-1144-new-continuous-integration
9+
pull_request:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies (Linux)
43+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
44+
run: |
45+
conda install c-compiler cxx-compiler fortran-compiler gfortran python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
46+
47+
- name: Install dependencies (macOS)
48+
if: ${{ startsWith(matrix.os, 'macos') }}
49+
run: |
50+
conda install c-compiler cxx-compiler fortran-compiler gfortran python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake mpich gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
51+
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
with:
55+
fetch-depth: 0
56+
fetch-tags: true
57+
58+
- name: Build everything we can
59+
run: |
60+
./setup install all
61+
62+
- name: Ensure we test only the installed packages
63+
run: |
64+
./setup distclean
65+
66+
- name: Test all
67+
env:
68+
OMPI_MCA_rmaps_base_oversubscribe: 1
69+
PRTE_MCA_rmaps_base_oversubscribe: 1
70+
PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
71+
OMPI_MCA_mpi_yield_when_idle: 1
72+
PRTE_MCA_mpi_yield_when_idle: 1
73+
OMPI_MCA_btl_tcp_if_include: lo,eth0
74+
PRTE_MCA_btl_tcp_if_include: lo,eth0
75+
PRTE_MCA_if_include: lo,eth0
76+
OMPI_MCA_pmix_server_max_wait: 10
77+
run: |
78+
./setup test all
79+
80+
- name: Archive build logs
81+
if: always()
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: logs-${{ matrix.os }}
85+
path: ${{ github.workspace }}/support/logs/
86+
if-no-files-found: warn

0 commit comments

Comments
 (0)