Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test for GH actions #1043

Merged
merged 6 commits into from
Sep 10, 2024
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
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
Loading