arch: null artifacts: [] environment: BUILD_SUBMITTER: git.sr.ht GIT_REF: refs/heads/main image: ubuntu/lts packages: - python3-pip repositories: {} secrets: - ceb490c3-68b4-41f7-9aa9-eb2e4b91d424 - 0b249c79-8eaf-4b82-b1d1-f3c38c7eae4b - 3a7c042a-24d8-4f53-b75c-f061f7517b65 shell: false sources: - https://git.sr.ht/~tfardet/NNGT#98473ff42c3e0c6b97c1a4a9cf1274fbb40fc2ce tasks: - check: | export PATH="/home/build/.local/bin:$PATH" cd NNGT python3 extra/check_headers.py pip3 install reuse reuse lint - setup: | sudo apt install -y software-properties-common sudo sh -c 'echo -n "deb https://downloads.skewed.de/apt jammy main\n" >> /etc/apt/sources.list' sudo apt-key adv --keyserver keys.openpgp.org --recv-key 612DEFB798507F25 sudo add-apt-repository -y ppa:nest-simulator/nest sudo apt-get update -qq sudo apt install -y gcc python3-dev libgeos-dev proj-bin libproj-dev openmpi-bin libopenmpi-dev libgmp-dev nest sudo apt install -y python3-pip python3-tk libigraph-dev python3-graph-tool python3-cairo python3-cairocffi pip3 install --upgrade pip setuptools pip install --upgrade numpy scipy cython mpi4py pip install --upgrade "networkx>=2.4" python-igraph pip install --upgrade "matplotlib<3.7" seaborn shapely svg.path dxfgrabber cartopy geopandas descartes lxml pip install --upgrade pytest pytest-mpi cov-core coverage coveralls[yaml] mv .coveralls.yml NNGT/.coveralls.yml || true cd NNGT pip install . echo 'export PATH=/home/build/.local/bin:$PATH' >> /home/build/.buildenv - test: | cd NNGT GL=all coverage run -p -m pytest testing/library_compatibility.py GL=gt coverage run -p -m pytest testing GL=nx coverage run -p -m pytest testing GL=ig coverage run -p -m pytest testing GL=nngt coverage run -p -m pytest testing GL=ig OMP=2 PYNEST_QUIET=1 coverage run -p -m pytest testing GL=gt OMP=0 MPI=1 mpirun -n 2 coverage run -p -m pytest --with-mpi testing coverage combine GIT_BRANCH=$(git show -s --pretty=%D HEAD | tr -s ', /' '\n' | grep -v HEAD | sed -n 2p) CI_NAME=$BUILD_SUBMITTER CI_BUILD_NUMBER=$JOB_ID CI_BUILD_URL=$JOB_URL CI_BRANCH=$GIT_BRANCH coveralls || true - doc: | cd NNGT GIT_BRANCH=$(git show -s --pretty=%D HEAD | tr -s ', /' '\n' | grep -v HEAD | sed -n 2p) set +x . ~/.rtd_nngt if [ "$GIT_BRANCH" == "main" ]; then curl -X POST -d "branches=main" -d "token=$rtd_nngt_token" https://readthedocs.org/api/v2/webhook/nngt/214030/; fi set -x triggers: [] oauth: ""