Skip to content

Commit

Permalink
moved logic to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanbasten-ns committed Sep 10, 2024
1 parent 26f55e9 commit dc66903
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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: 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
Expand Down

0 comments on commit dc66903

Please sign in to comment.