Skip to content

Fix string input to logger.error in phsp_helpers.py #145

Fix string input to logger.error in phsp_helpers.py

Fix string input to logger.error in phsp_helpers.py #145

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
ITK_VERSION: [5.3.0, pre]
steps:
- name: Checkout github repo
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ ${{ matrix.ITK_VERSION }} == 'pre' ];
then pip install itk --pre;
else pip install itk==${{ matrix.ITK_VERSION }};
fi
pip install -e .
pip install uproot3
pip freeze
- name: Run the tests
run: |
python -m unittest gatetools -v
python -m unittest gatetools.phsp -v
- name: Create wheel
if: startsWith(github.ref, 'refs/tags')
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true