From d5db1617de87aa0f5d2080e06649fbeb41382bcb Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Tue, 12 Nov 2024 12:01:53 +0100 Subject: [PATCH] install latest qgis --- .github/workflows/test_plugin.yaml | 34 +++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_plugin.yaml b/.github/workflows/test_plugin.yaml index 8475827..69f2411 100644 --- a/.github/workflows/test_plugin.yaml +++ b/.github/workflows/test_plugin.yaml @@ -19,16 +19,34 @@ jobs: run: | sudo apt-get install python3-pytest python3-pytest-cov - - name: GIS Sources + - name: Prepare QGIS run: | - sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable + sudo gpg -k && \ + KEYRING=/usr/share/keyrings/qgis-archive-keyring.gpg && \ + wget -O $KEYRING https://download.qgis.org/downloads/qgis-archive-keyring.gpg && \ + sudo touch /etc/apt/sources.list.d/qgis.sources && \ + echo 'Types: deb deb-src' | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + echo 'URIs: https://qgis.org/ubuntugis' | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + echo 'Suites: '$(lsb_release -c -s) | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + echo 'Architectures: '$(dpkg --print-architecture) | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + echo 'Components: main' | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + echo 'Signed-By: '$KEYRING | sudo tee -a /etc/apt/sources.list.d/qgis.sources && \ + LASTSUPPORTED=focal && \ + KEYRING=/usr/share/keyrings/ubuntugis-archive-keyring.gpg && \ + sudo gpg --no-default-keyring --keyring $KEYRING --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B827C12C2D425E227EDCA75089EBE08314DF160 && \ + sudo touch /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'Types: deb deb-src' | sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'URIs:https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu' | sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'Suites: '$(lsb_release -c -s)| sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'Architectures: '$(dpkg --print-architecture) | sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'Components: main' | sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources && \ + echo 'Signed-By: '$KEYRING | sudo tee -a /etc/apt/sources.list.d/ubuntugis-unstable.sources - - name: Install QGIS - run: | - sudo wget -qO /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg - sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/qgis-archive-keyring.gpg] https://qgis.org/ubuntugis `lsb_release -c -s` main" > /etc/apt/sources.list.d/qgis.list' - sudo apt-get update - sudo apt-get install -y qgis + - name: Install + run: | + sudo apt-get update && \ + sudo apt-get -y -q install --no-install-recommends wget software-properties-common build-essential ca-certificates python3-pip dialog apt-utils && \ + sudo apt -y -q install qgis qgis-dev qgis-plugin-grass - name: QGIS Version run: qgis --version