Skip to content

Commit 6db5c02

Browse files
authored
Merge pull request #18 from simpeg/ci_maintenance
Reconfigure
2 parents 79c4103 + e017d0e commit 6db5c02

9 files changed

+691
-713
lines changed

.github/workflows/python-package-conda.yml

+17-19
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,24 @@ jobs:
2222
strategy:
2323
fail-fast: False
2424
matrix:
25-
os: [ubuntu-latest, macos-latest, windows-latest]
26-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
27-
mkl-version: ['2023'] # currently 2024 fails building for some reason...
25+
os: [ubuntu-latest, macos-12, windows-latest]
26+
python-version: ["3.10", "3.11", "3.12"]
27+
mkl-version: ['2023', '2024']
2828
include:
2929
- os: ubuntu-latest
3030
python-version: "3.12"
3131
coverage: ${{ true }}
32-
- os: ubuntu-latest
33-
python-version: "3.12"
34-
mkl-version: '2024'
35-
- os: windows-latest
36-
python-version: "3.12"
37-
mkl-version: '2024'
32+
exclude:
33+
- os: macos-12
34+
mkl-version: "2024"
3835

3936
steps:
4037
- uses: actions/checkout@v4
4138
- name: Setup Conda
4239
uses: conda-incubator/setup-miniconda@v3
4340
with:
4441
python-version: ${{ matrix.python-version }}
45-
mamba-version: '*'
46-
channels: conda-forge, defaults
42+
channels: defaults
4743
channel-priority: true
4844
activate-environment: dev
4945

@@ -55,22 +51,25 @@ jobs:
5551
5652
- name: Create environment
5753
run: |
58-
mamba install --quiet --yes pip numpy scipy cython mkl=${{ matrix.mkl-version }} pytest \
54+
conda install --quiet --yes -c conda-forge \
55+
pip numpy scipy cython mkl=${{ matrix.mkl-version }} pytest \
5956
mkl-devel pkg-config meson-python meson ninja setuptools_scm \
60-
${{ matrix.coverage && 'coverage' || ''}}
57+
${{ matrix.coverage && 'coverage' || ''}} \
58+
${{ matrix.os == 'windows-latest' && '"libblas=*=*mkl"' || ''}}
6159
6260
- name: Install Our Package
6361
run: |
6462
python -m pip install --no-build-isolation --verbose --editable . \
6563
--config-setting=compile-args=-v \
66-
${{ matrix.coverage && '--config-settings=setup-args="-Dcy_coverage=true"' || ''}}
64+
${{ matrix.coverage && '--config-settings=setup-args="-Db_coverage=true"' || ''}} \
65+
${{ matrix.os == 'windows-latest' && '--config-settings=setup-args="-Dvsenv=true"' || ''}}
66+
6767
conda list
6868
6969
- name: Run Tests
7070
run: |
7171
${{ matrix.coverage && 'coverage run -m' || '' }} pytest -s -v
7272
${{ matrix.coverage && 'coverage xml' || '' }}
73-
continue-on-error: ${{ matrix.os == 'windows-latest' && matrix.mkl-version == '2024'}}
7473
7574
- name: Upload coverage
7675
if: ${{ matrix.coverage }}
@@ -93,9 +92,8 @@ jobs:
9392
- name: Setup Conda
9493
uses: conda-incubator/setup-miniconda@v3
9594
with:
96-
python-version: 3.11
97-
mamba-version: '*'
98-
channels: conda-forge, defaults
95+
python-version: "3.11"
96+
channels: defaults
9997
channel-priority: true
10098
activate-environment: dev
10199

@@ -107,7 +105,7 @@ jobs:
107105
108106
- name: Create environment
109107
run: |
110-
mamba install --quiet --yes pip numpy scipy cython mkl=2023 \
108+
conda install --quiet --yes pip numpy scipy cython mkl=2023 \
111109
mkl-devel pkg-config meson-python meson ninja setuptools_scm \
112110
python-build
113111

meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ print(get_version())'''
1414
).stdout().strip(),
1515

1616
license: 'MIT',
17-
meson_version: '>= 1.1.0',
17+
meson_version: '>= 1.4.0',
1818
default_options: [
1919
'buildtype=debugoptimized',
2020
'b_ndebug=if-release',

meson.options

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
option('cy_coverage', type : 'boolean', value : false)
2-
31
option('use-sdl', type: 'boolean', value: true,
42
description: 'Use the single dynamic library.')
53

0 commit comments

Comments
 (0)