From 6a295109a8f06c5b8705d31a59b66df2242ddb0f Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Fri, 12 Jul 2024 11:06:55 +0200 Subject: [PATCH] add --- .github/workflows/test_plugin.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_plugin.yaml b/.github/workflows/test_plugin.yaml index ee0c23e..c9c7dd8 100644 --- a/.github/workflows/test_plugin.yaml +++ b/.github/workflows/test_plugin.yaml @@ -13,12 +13,27 @@ jobs: runs-on: ubuntu-latest - container: cahik/vscode-ubuntu-qgis-testing:v2 - steps: + - name: GIS Sources + run: | + sudo add-apt-repository ppa:ubuntugis/ppa + + - 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/ubuntu `lsb_release -c -s` main" > /etc/apt/sources.list.d/qgis.list' + sudo apt-get update + sudo apt-get install -y qgis + + - name: QGIS Version + run: qgis --version + + - name: Install Python packages + run: pip install pytest pytest-qgis pytest-cov pytest-qt + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Add Python Path run: |