Skip to content

Commit

Permalink
workflow for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Dec 6, 2023
1 parent 7a417d7 commit 39a7c83
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test_plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests for Plugin LandXML to Mesh

on:
push:
paths:
- "landxmlconvertor/**"
- ".github/workflows/test_plugin.yaml"
- "tests/**"

jobs:

Tests-plugin-LandXML-to-Mesh:

runs-on: ubuntu-latest

steps:

- 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: Install Python packages
run: pip install pytest pytest-qgis

- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=/usr/share/qgis/python/plugins:/usr/share/qgis/python:." >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

- name: Run Tests
run: |
QT_QPA_PLATFORM=offscreen pytest tests -rP -vv -s

0 comments on commit 39a7c83

Please sign in to comment.