Skip to content

Commit

Permalink
ci: install dev version of 'sym'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Jan 16, 2025
1 parent 5054f13 commit fe40c9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .ci/ci-01-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ export LD_LIBRARY_PATH=$SUNDBASE/lib
source /opt-3/cpython-v3.*-apt-deb/bin/activate

INSTALL_PIP_FLAGS="--cache-dir $CACHE_ROOT/pip_cache ${INSTALL_PIP_FLAGS:-}" # --user
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pyodesys; do
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes sym pyodesys; do
case $pypkg in
sym)
pypkg_fqn="git+https://github.com/bjodah/sym@jun21#egg=sym"
;;
pyodeint)
pypkg_fqn="git+https://github.com/bjodah/pyodeint@sep21#egg=pyodeint"
;;
Expand All @@ -30,19 +33,12 @@ for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pyodesys;
pypkg_fqn=$pypkg
;;
esac
# if [[ $pypkg == "pycvodes" ]]; then
# env \
# CFLAGS="-isystem $SUNDBASE/include ${CFLAGS:-}" \
# LDFLAGS="-Wl,--disable-new-dtags -Wl,-rpath,$SUNDBASE/lib -L$SUNDBASE/lib ${LDFLAGS:-}" \
# python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
# else
python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
# fi
( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
#( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
done

python3 -m pip install $INSTALL_PIP_FLAGS -e .[all]
python3 -c "import pycvodes; import pyodesys; import pygslodeiv2" # debug this CI config
python3 -c "import pycvodes; import pyodesys; import pygslodeiv2"
git fetch -tq
python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)
git archive -o dist/chempy-head.zip HEAD # test pip installable zip (symlinks break)
Expand Down
1 change: 1 addition & 0 deletions .ci/ci-02-run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -euxo pipefail
source /opt-3/cpython-v3.*-apt-deb/bin/activate

[[ $(python3 setup.py --version) =~ ^[0-9]+.* ]]
./scripts/run_tests.sh --cov chempy --cov-report html
./scripts/coverage_badge.py htmlcov/ htmlcov/coverage.svg

0 comments on commit fe40c9d

Please sign in to comment.