Skip to content
Closed
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
51 changes: 23 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,34 +67,29 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# This is a job for macOS python3 tests
# macospy3:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2

# # Install dependencies
# - name: Install dependencies
# run: |
# brew update
# brew install fontconfig gd gettext libffi glib jasper netpbm gts graphviz gsl libxml2 openblas numpy tbb xrootd || true
# brew install python@3.8 openssl@1.1 || true

# # Run pytest
# - name: Run pytest
# run: |
# ROOT_VERSION=6.20.04_1
# curl -O https://clange.web.cern.ch/clange/root-v${ROOT_VERSION}.tar.gz
# tar xzf root-v${ROOT_VERSION}.tar.gz
# mkdir -p /usr/local/Cellar/root
# mv ${ROOT_VERSION} /usr/local/Cellar/root/
# cd /usr/local/Cellar/root/${ROOT_VERSION}
# export PATH=${PWD}/bin:$(brew --cellar python@3.8)/$(ls $(brew --cellar python@3.8))/bin:${PATH}
# export PYTHONPATH=${PWD}/lib/root:${PYTHONPATH}
# export LD_LIBRARY_PATH=${PWD}/lib/root:${LD_LIBRARY_PATH}
# echo ${PYTHONPATH}
# cd -
# python3 -m pip install pytest ipykernel papermill jupyter_client nbconvert
# python3 setup.py test
macospy3:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
brew update
brew install python@3.8 openssl@1.1 || true
brew install fontconfig gd gettext libffi glib jasper netpbm gts graphviz gsl libxml2 openblas numpy tbb xrootd root || true
# Run pytest
- name: Run pytest
run: |
. $(brew --prefix)/bin/thisroot.sh
$(brew --prefix)/bin/python3 -m pip install pytest ipykernel papermill jupyter_client nbconvert
$(brew --prefix)/bin/python3 setup.py test

# # Save notebooks
# - name: Save notebooks
Expand Down