blob: 532f1a3e1efe2dc03073a283814e260da65e40f3 [file] [log] [blame]
dist: jammy
language: python
matrix:
include:
- python: '3.7'
env:
- python: '3.8'
env:
- python: '3.9'
env:
- COVERAGE="true"
- NUMPY="true"
- python: '3.10'
env:
- python: '3.11'
env:
- python: '3.12-dev'
env:
- python: 'pypy3.7-7.3.9'
env:
- python: 'pypy3.8-7.3.9' # at 7.3.11
env:
- python: 'pypy3.9-7.3.9' # at 7.3.12
env:
- python: 'pypy3.10-7.3.12'
env:
allow_failures:
- python: '3.12-dev'
- python: 'pypy3.10-7.3.12' # CI missing
fast_finish: true
cache:
pip: true
before_install:
- set -e # fail on any error
- if [[ $COVERAGE == "true" ]]; then pip install coverage; fi
- if [[ $NUMPY == "true" ]]; then pip install numpy; fi
install:
- python -m pip install .
script:
- for test in dill/tests/__init__.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
- for test in dill/tests/test_*.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
after_success:
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
- if [[ $COVERAGE == "true" ]]; then coverage report; fi