Skip to content

Commit

Permalink
Merge pull request #1043 from nens/ben-gh-version-check
Browse files Browse the repository at this point in the history
test for GH actions
  • Loading branch information
benvanbasten-ns authored Sep 10, 2024
2 parents 5c77ea5 + 03c04a5 commit f05944c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:

- name: test
run: |
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make check
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make test
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make flake8
docker compose run qgis-desktop make docstrings
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ tests/data/small_2019_01_2entries_4tiff.sqlite
.pytest_cache/v/cache/nodeids
.h5py_marker
constraints.txt
requirements.in
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ zip: compile
find /tmp/$(PLUGINNAME) -iname "*.pyc" -delete
cd /tmp; zip -9r $(CURDIR)/$(PLUGINNAME).zip $(PLUGINNAME)

check: constraints.txt
# Use pip-compile to check whether all dependencies version constraints are met.
cp constraints.txt requirements.in
pip-compile --dry-run
rm requirements.in

package: compile
# Create a zip package of the plugin named $(PLUGINNAME).zip.
# This requires use of git (your plugin development directory must be a
Expand Down
3 changes: 2 additions & 1 deletion dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@
from PyQt5.QtWidgets import QProgressDialog
from qgis.core import Qgis

import setuptools # noqa: https://github.com/pypa/setuptools/issues/2993
import importlib
import logging
import os
import pkg_resources
import platform
import setuptools # noqa: https://github.com/pypa/setuptools/issues/2993
import shutil
import subprocess
import sys
import tarfile


# in case the dependency is a tar, the constraint should be the
# explicit version (e.g. "==3.8.0")
Dependency = namedtuple("Dependency", ["name", "package", "constraint", "tar"])
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ docstr-coverage >= 1.0.4
flake8
isort
mock
pip-tools
pytest < 8.0
pytest-cov
pytest-flake8
Expand Down

0 comments on commit f05944c

Please sign in to comment.