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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
moved logic to makefile
  • Loading branch information
benvanbasten-ns committed Sep 10, 2024
commit dc669033edc4e589fc67c38872ad998e76100fa9
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -24,8 +24,7 @@ jobs:
- name: test
run: |
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make test
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop cp constraints.txt requirements.in
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop pip-compile --dryrun
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make check
docker compose run -e QT_QPA_PLATFORM=offscreen qgis-desktop make flake8
docker compose run qgis-desktop make docstrings
docker compose run qgis-desktop coveralls || true
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -84,6 +84,12 @@ zip: compile
find /tmp/$(PLUGINNAME) -iname "*.pyc" -delete
cd /tmp; zip -9r $(CURDIR)/$(PLUGINNAME).zip $(PLUGINNAME)

check: compile
# 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