Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme: add warning for "tables" dependency on Apple Silicon #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/docs.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/lint.yml

This file was deleted.

26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
run:
continue-on-error: True
runs-on: ${{ matrix.os }}
env:
OSX_VERSION: ""

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# on macos-latest instead of macos-latest, see https://github.com/bancaditalia/black-it/issues/79
os: [macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11"]

timeout-minutes: 30
Expand All @@ -37,6 +40,27 @@ jobs:
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# run: ...
- if: matrix.os == 'macos-latest'
name: Read MacOS version
shell: bash
run: |
VERSION=$(sw_vers -productVersion)
echo "MacOS version is $VERSION"
echo "OSX_VERSION=${VERSION}" >> $GITHUB_ENV
- if: env.OSX_VERSION == '12.7.1'
name: Install dependencies (macos-latest)
shell: bash
run: |
pip install cython==0.29.36
# for some reason this seems to be a necessary step for MacOS images, but not for Ubuntu and Windows
brew install hdf5
brew install c-blosc
# https://stackoverflow.com/questions/73029883/could-not-find-hdf5-installation-for-pytables-on-m1-mac
echo "$(brew --prefix hdf5)"
echo "$(brew --prefix c-blosc)"
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
echo "BLOSC_DIR=$(brew --prefix c-blosc)" >> $GITHUB_ENV
pip install --no-cache-dir --no-binary=tables tables==3.8.0
- if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }}
name: Unit tests and coverage (ubuntu-latest, macos-latest)
run: |
Expand Down