Skip to content

Commit

Permalink
install latest qgis
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Nov 12, 2024
1 parent a2083d8 commit d5db161
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/test_plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5db161

Please sign in to comment.