Skip to content

Commit

Permalink
Merge pull request #101 from rcoup/rc-qgis-update
Browse files Browse the repository at this point in the history
QGIS & Kart version updates
  • Loading branch information
rcoup authored May 15, 2023
2 parents 40a254c + 12d7107 commit fef4c76
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG QGIS_TEST_VERSION=latest
FROM qgis/qgis:${QGIS_TEST_VERSION}
FROM qgis/qgis:${QGIS_TEST_VERSION}

RUN apt-get update && \
apt-get install -y python3-pip
Expand All @@ -9,9 +9,11 @@ RUN pip3 install -r /tmp/requirements.txt
COPY ./requirements_test.txt /tmp/
RUN pip3 install -r /tmp/requirements_test.txt

RUN apt-get install wget
RUN wget -nv https://github.com/koordinates/kart/releases/download/v0.12.2/kart_0.12.2_amd64.deb
RUN apt install -qy ./kart_0.12.2_amd64.deb
ARG KART_VERSION
RUN apt-get install -y wget
RUN wget -nv https://github.com/koordinates/kart/releases/download/v${KART_VERSION}/kart_${KART_VERSION}_$(dpkg --print-architecture).deb
RUN apt install -qy ./kart_${KART_VERSION}_$(dpkg --print-architecture).deb
#RUN kart --version

ENV LANG=C.UTF-8

Expand Down
1 change: 1 addition & 0 deletions .docker/docker-compose.gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
dockerfile: ./.docker/Dockerfile
args:
QGIS_TEST_VERSION: ${QGIS_TEST_VERSION}
KART_VERSION: ${KART_VERSION}
tty: true
volumes:
- ${GITHUB_WORKSPACE}:/usr/src
9 changes: 5 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ on:
jobs:
# Run unit tests
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
qgis_version: [release-3_16, latest]
qgis_version: [release-3_28, latest]
fail-fast: false

env:
QGIS_TEST_VERSION: ${{ matrix.qgis_version }}
KART_VERSION: "0.12.3"

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Test on QGIS
run: >
docker-compose -f .docker/docker-compose.gh.yml
run qgis /usr/src/.docker/run-docker-tests.sh
docker-compose -f .docker/docker-compose.gh.yml run --build --rm
qgis /usr/src/.docker/run-docker-tests.sh
3 changes: 2 additions & 1 deletion kart/kartapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
from kart.utils import progressBar, setting, setSetting, KARTPATH, HELPERMODE
from kart import logging

SUPPORTED_VERSION = "0.12.2"

SUPPORTED_VERSION = "0.12.3"


class KartException(Exception):
Expand Down
5 changes: 3 additions & 2 deletions kart/tests/test_kartapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import tempfile
import re
import shutil
import tempfile

from qgis.core import (
edit,
Expand Down Expand Up @@ -79,7 +80,7 @@ def testChangeHelperMode(self):

def testKartVersion(self):
version = installedVersion()
assert version == "0.12.2"
assert re.match(r'\d+\.\d+\.\d+', version)

def testStoreReposInSettings(self):
manager = RepoManager()
Expand Down

0 comments on commit fef4c76

Please sign in to comment.