Skip to content

Commit

Permalink
Add QGIS tests for 3.34 and 3.40
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Nov 22, 2024
1 parent 9bc771c commit 98f69e4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,38 @@ jobs:
-v ${GITHUB_WORKSPACE}/.local:/.local
3liz/qgis-platform:3.22
./tests/run-tests.sh
- name: Running Qgis 3.28 tests
run: >-
docker run
--rm
--name qgis-server
-u $(id -u)
-v ${GITHUB_WORKSPACE}/.cache:/.cache
-e PIP_CACHE_DIR=/.cache
-w /src
-e PYTEST_ADDOPTS=""
-v ${GITHUB_WORKSPACE}:/src
-v ${GITHUB_WORKSPACE}/.local:/.local
3liz/qgis-platform:3.28
./tests/run-tests.sh
- name: Running Qgis 3.34 tests
run: >-
docker run
--rm
--name qgis-server
-u $(id -u)
-v ${GITHUB_WORKSPACE}/.cache:/.cache
-e PIP_CACHE_DIR=/.cache
-w /src
-e PYTEST_ADDOPTS=""
-v ${GITHUB_WORKSPACE}:/src
-v ${GITHUB_WORKSPACE}/.local:/.local
3liz/qgis-platform:3.34
./tests/run-tests.sh
- name: Running Qgis 3.26 tests
- name: Running Qgis 3.40 tests
run: >-
docker run
--rm
Expand All @@ -81,9 +111,10 @@ jobs:
-e PYTEST_ADDOPTS=""
-v ${GITHUB_WORKSPACE}:/src
-v ${GITHUB_WORKSPACE}/.local:/.local
3liz/qgis-platform:3.26
3liz/qgis-platform:3.40
./tests/run-tests.sh
release:
needs: [test-server]

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import os
import sys

from typing import Any, Dict, Generator

import lxml.etree
import pytest

from typing import Any, Dict, Generator

from qgis.core import Qgis, QgsApplication, QgsFontUtils, QgsProject
from qgis.server import (
QgsBufferServerRequest,
Expand Down
3 changes: 1 addition & 2 deletions tilesForServer/tmsapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from pathlib import Path

from qgis.core import (
# QgsVectorTileMVTEncoder, #define SIP_NO_FILE
from qgis.core import ( # QgsVectorTileMVTEncoder, #define SIP_NO_FILE
Qgis,
QgsCoordinateReferenceSystem,
QgsCoordinateTransform,
Expand Down

0 comments on commit 98f69e4

Please sign in to comment.