Skip to content

Commit

Permalink
Merge branch 'master' into upstream-changes
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/main.yml
#	setup.cfg
#	setup.py
#	tox.ini
#	{{cookiecutter.project_slug}}/setup.py
  • Loading branch information
Zeitsperre committed Sep 17, 2024
2 parents 98b9777 + 231d17e commit 94537ce
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
python-version: "3.11"
- tox-env: py312
python-version: "3.12"
- tox-env: pypy310
- tox-env: pypy39-nogdal
python-version: "pypy-3.9"
- tox-env: pypy310-nogdal
python-version: "pypy-3.10"
steps:
- name: Checkout repository and submodules
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
min_version = 4.18.0
envlist =
py{39,310,311,312},
pypy310,
pypy{39,310,311,312},
docs
requires = pip >= 24.2.0
opts = -v
opts = --verbose

[testenv:docs]
basepython = python
changedir = docs/source
commands=
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
allowlist_externals =
sphinx-build

[testenv:pypy310]
[testenv:pypy{39,310,311,312}]
commands =
pytest -m "not requires_gdal"

Expand All @@ -22,7 +24,6 @@ setenv =
CRYPTOGRAPHY_DONT_BUILD_RUST = 1
PYTHONPATH = {toxinidir}
PYTEST_ADDOPTS = "--color=yes"
nogdal: PYTEST_ADDOPTS = "--color=yes -m 'not requires_gdal'"
deps =
extras =
dev
Expand Down
6 changes: 5 additions & 1 deletion {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ test-tox: ## run tests on every available Python version with tox

test-notebooks: notebook-sanitizer ## run notebook-based tests
@echo "Running notebook-based tests"
@bash -c "env WPS_URL=$(WPS_URL) pytest --nbval --verbose $(CURDIR)/docs/source/notebooks/ --sanitize-with $(CURDIR)/docs/source/output-sanitize.cfg --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints"
@bash -c "env WPS_URL=$(WPS_URL) pytest --nbval --rootdir tests/ --verbose $(CURDIR)/docs/source/notebooks/ --sanitize-with $(CURDIR)/docs/source/output-sanitize.cfg --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints"

test-notebooks-lax: notebook-sanitizer ## run tests on notebooks but don't be so strict about outputs
@echo "Running notebook-based tests"
@bash -c "env WPS_URL=$(WPS_URL) pytest --nbval-lax --rootdir tests/ --verbose $(CURDIR)/docs/source/notebooks/ --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints"

coverage: ## check code coverage quickly with the default Python
{%- if cookiecutter.use_pytest == 'y' %}
Expand Down

0 comments on commit 94537ce

Please sign in to comment.