Skip to content
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
20 changes: 17 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
push:

jobs:
pyqt6-check:
uses: opengisch/qgis-plugin-ci/.github/workflows/pyqt6_test.yml@master
with:
plugin_path: ORSTools

test_3_16:
runs-on: ubuntu-latest
steps:
Expand All @@ -15,13 +20,22 @@ jobs:
docker run -v ${GITHUB_WORKSPACE}:/src -w /src qgis/qgis:release-3_16 sh -c 'apt-get -y update && apt-get -y install xvfb && export ORS_API_KEY=${{ secrets.ORS_API_KEY }} && pip install -U pytest && xvfb-run -a pytest'
env:
DOCKER_IMAGE: ${{ steps.docker-build.outputs.FULL_IMAGE_NAME }}
test_3_22:
test_ltr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run test LTR
run: |
docker run -v ${GITHUB_WORKSPACE}:/src -w /src qgis/qgis:ltr-trixie sh -c 'apt-get -y update && apt-get -y install xvfb && export ORS_API_KEY=${{ secrets.ORS_API_KEY }} && export DISPLAY=:0.0 && apt install python3-pytest && xvfb-run -a pytest'
env:
DOCKER_IMAGE: ${{ steps.docker-build.outputs.FULL_IMAGE_NAME }}
test_4_0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run test 3.22
- name: Run test 4.0
run: |
docker run -v ${GITHUB_WORKSPACE}:/src -w /src qgis/qgis:release-3_22 sh -c 'apt-get -y update && apt-get -y install xvfb && export ORS_API_KEY=${{ secrets.ORS_API_KEY }} && export DISPLAY=:0.0 && pip install -U pytest && xvfb-run -a pytest'
docker run -v ${GITHUB_WORKSPACE}:/src -w /src qgis/qgis:4.0 sh -c 'apt-get -y update && apt-get -y install xvfb && export ORS_API_KEY=${{ secrets.ORS_API_KEY }} && export PYTHONPATH=/usr/share/qgis/python && apt install python3-pytest && xvfb-run -a pytest'
env:
DOCKER_IMAGE: ${{ steps.docker-build.outputs.FULL_IMAGE_NAME }}
test_latest:
Expand Down
2 changes: 1 addition & 1 deletion ORStools/metadata.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[general]
name=ORS Tools
qgisMinimumVersion=3.4.8
qgisMaximumVersion=4.99
description=openrouteservice routing, isochrones and matrix calculations for QGIS
supportsQt6=True

version=2.1.0
author=HeiGIT gGmbH
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def test_custom_endpoints(self):
self.assertEqual(settings_directions_endpoint, "directions")

layer = proc.get_directions_points_layer()
self.assertAlmostEqual(layer.featureCount(), 93, delta=3)
self.assertAlmostEqual(layer.featureCount(), 97, delta=3)

self.assertEqual(
"POINT(8.67251100000000008 49.39887900000000087)",
Expand Down
Loading