Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/build-win-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
ref: ${{ inputs.release_tag && format('refs/tags/{0}', inputs.release_tag) || github.sha }}
persist-credentials: false
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/mkdocs-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy Docs to GitHub Pages

on:
workflow_dispatch:
pull_request:
branches:
- main
Expand Down Expand Up @@ -42,13 +43,13 @@ jobs:
- name: Build docs site
run: pixi run zensical build -f docs/mkdocs.yml
- name: Upload Pages artifact
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: docs/site

deploy:
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
needs: test-docs
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/python-compatibility-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ jobs:
strategy:
fail-fast: false
matrix:
# conda-forge has no Python 3.14 build of networkit yet, so 3.14 installs it
# from PyPI (cp314 wheels are published there) instead of conda.
include:
- python-version: "3.12"
toxenv: py312
conda-networkit: networkit
pip-networkit: ""
- python-version: "3.13"
toxenv: py313
conda-networkit: networkit
pip-networkit: ""
- python-version: "3.14"
toxenv: py314
conda-networkit: ""
pip-networkit: networkit

steps:
- uses: actions/checkout@v7
Expand All @@ -37,7 +45,7 @@ jobs:
gdal>=3.12,<4
geopandas
pandas
networkit
${{ matrix.conda-networkit }}
numpy>=1.26,<2.4
pandas
pyogrio>=0.12
Expand All @@ -62,8 +70,23 @@ jobs:

- name: Install project
shell: bash -el {0}
run: python -m pip install -e . --no-deps
env:
PIP_NETWORKIT: ${{ matrix.pip-networkit }}
run: |
python -m pip install -e . --no-deps
if [ -n "$PIP_NETWORKIT" ]; then
python -m pip install "$PIP_NETWORKIT"
fi

- name: Run Tests
shell: bash -el {0}
run: tox -e ${{ matrix.toxenv }}
env:
TOXENV_NAME: ${{ matrix.toxenv }}
run: |
# tox passes these through (see passenv in tox.ini); fall back to the
# env's share/ dirs in case activation did not export them.
export PROJ_DATA="${PROJ_DATA:-$CONDA_PREFIX/share/proj}"
export GDAL_DATA="${GDAL_DATA:-$CONDA_PREFIX/share/gdal}"
echo "PROJ_DATA=$PROJ_DATA"; ls "$PROJ_DATA/proj.db"
echo "GDAL_DATA=$GDAL_DATA"
tox -e "$TOXENV_NAME"
1 change: 1 addition & 0 deletions .github/workflows/python-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Python Tests / Integration

on:
workflow_dispatch:
pull_request:
branches:
- main
Expand Down
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@ description = Run tests/test_workflow.py with pytest in an isolated environment
package = skip
skip_install = true
sitepackages = true
# Run pytest via the env's interpreter: with sitepackages=true pytest lives in the
# base (conda) env, so a bare `pytest` is not inside the venv and tox 4 rejects it.
commands =
pytest -vv -s --maxfail=1 --log-cli-level=INFO tests/test_workflow.py
python -m pytest -vv -s --maxfail=1 --log-cli-level=INFO tests/test_workflow.py
setenv =
PYTHONDONTWRITEBYTECODE = 1
# tox 4 strips the environment. Inside the venv sys.prefix is .tox/<env>, so
# pyproj/pyogrio/GDAL cannot locate the base env's data files on their own and
# need the variables the conda activation scripts set.
passenv =
PROJ_DATA
PROJ_LIB
GDAL_DATA
GDAL_DRIVER_PATH

[testenv:py312]
basepython = python3.12
Expand Down
Loading