[QGIS-Developer] Github workflow for plugin
Renata Imai
renataakemii at gmail.com
Wed Sep 18 09:49:48 PDT 2024
Hello everyone!
I want to set up a GitHub workflow to test if the QGIS plugin installation
works fine on Windows and if the tests are passing. This is due to several
installation issues our users have had recently so that we can spot and fix
them right away.
I'm currently using the code below, but it does not test the plugin
installation following the same steps a user would take to install it and
despite this first issue, some tests are failing under this Windows
installation, but passing on Ubuntu-latest.
Does anyone have a suggestion to overcome both installation and testing
issues?
Regards,
Renata.
```
name: DevelopmentTests
on: [pull_request]
jobs:
windows_test:
runs-on: windows-latest
steps:
- uses: actions/checkout at v3
- name: Install QGIS on Chocolatey
uses: crazy-max/ghaction-chocolatey at v3
with:
args: install qgis-ltr -y --version 3.34.6
- name: Plugin install
shell: pwsh
run: |
$env:PATH="C:\Program Files\QGIS 3.34.6\bin;$env:PATH"
$env:QGIS_PLUGIN_IN_CI=1
python-qgis-ltr.bat -m pip install -r test/requirements-test.txt
python-qgis-ltr.bat -m pytest test
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240918/79a41721/attachment.htm>
More information about the QGIS-Developer
mailing list