Skip to content

Commit 1445183

Browse files
temp
1 parent 9b7b8c1 commit 1445183

File tree

3 files changed

+23
-95
lines changed

3 files changed

+23
-95
lines changed

.github/workflows/docs.yml

-46
This file was deleted.

.github/workflows/lint.yml

-39
This file was deleted.

.github/workflows/test.yml

+23-10
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ jobs:
1010
run:
1111
continue-on-error: True
1212
runs-on: ${{ matrix.os }}
13+
env:
14+
OSX_VERSION: ""
1315

1416
strategy:
1517
matrix:
16-
# on macos-11 instead of macos-latest, see https://github.com/bancaditalia/black-it/issues/79
17-
os: [ubuntu-latest, macos-11, windows-latest]
18+
# on macos-latest instead of macos-latest, see https://github.com/bancaditalia/black-it/issues/79
19+
os: [macos-latest]
1820
python-version: [3.8, 3.9, "3.10", "3.11"]
1921

2022
timeout-minutes: 30
@@ -38,23 +40,34 @@ jobs:
3840
# env:
3941
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
4042
# run: ...
41-
- if: matrix.os == 'macos-11'
42-
name: Install dependencies (macos-11)
43+
- if: matrix.os == 'macos-latest'
44+
name: Read MacOS version
45+
shell: bash
46+
run: |
47+
VERSION=$(sw_vers -productVersion)
48+
echo "MacOS version is $VERSION"
49+
echo "OSX_VERSION=${VERSION}" >> $GITHUB_ENV
50+
- if: env.OSX_VERSION == '12.7.1'
51+
name: Install dependencies (macos-latest)
52+
shell: bash
4353
run: |
4454
# for some reason this seems to be a necessary step for MacOS images, but not for Ubuntu and Windows
4555
brew install hdf5
4656
brew install c-blosc
4757
# https://stackoverflow.com/questions/73029883/could-not-find-hdf5-installation-for-pytables-on-m1-mac
48-
echo "HDF5_DIR=/usr/local/" >> $GITHUB_ENV
49-
echo "BLOSC_DIR=/usr/local/" >> $GITHUB_ENV
50-
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-11') }}
51-
name: Unit tests and coverage (ubuntu-latest, macos-11)
58+
echo "$(brew --prefix hdf5)"
59+
echo "$(brew --prefix c-blosc)"
60+
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
61+
echo "BLOSC_DIR=$(brew --prefix c-blosc)" >> $GITHUB_ENV
62+
pip install --no-cache-dir --no-binary=tables tables==3.8.0
63+
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }}
64+
name: Unit tests and coverage (ubuntu-latest, macos-latest)
5265
run: |
5366
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
5467
tox -e py${pyver} -- -m 'not e2e'
5568
tox -e py${pyver}-nb
56-
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-11') }}
57-
name: Notebook tests (ubuntu-latest, macos-11)
69+
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }}
70+
name: Notebook tests (ubuntu-latest, macos-latest)
5871
run: |
5972
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
6073
tox -e py${pyver}-nb

0 commit comments

Comments
 (0)