@@ -10,11 +10,13 @@ jobs:
10
10
run :
11
11
continue-on-error : True
12
12
runs-on : ${{ matrix.os }}
13
+ env :
14
+ OSX_VERSION : " "
13
15
14
16
strategy :
15
17
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]
18
20
python-version : [3.8, 3.9, "3.10", "3.11"]
19
21
20
22
timeout-minutes : 30
@@ -38,23 +40,34 @@ jobs:
38
40
# env:
39
41
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
40
42
# 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
43
53
run : |
44
54
# for some reason this seems to be a necessary step for MacOS images, but not for Ubuntu and Windows
45
55
brew install hdf5
46
56
brew install c-blosc
47
57
# 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)
52
65
run : |
53
66
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
54
67
tox -e py${pyver} -- -m 'not e2e'
55
68
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 )
58
71
run : |
59
72
pyver=`echo ${{ matrix.python-version }} | tr -d "."`
60
73
tox -e py${pyver}-nb
0 commit comments