Skip to content

Commit

Permalink
Update test_qgis_color_func.yml
Browse files Browse the repository at this point in the history
corrected test_qgis_color.py file path

corrected test_qgis_color.py file path

Update test_qgis_color_func.yml

Update test_qgis_color_func.yml
  • Loading branch information
jehlijos committed Jun 20, 2024
1 parent fd91fb8 commit 16ef238
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/test_qgis_color_func.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,34 @@ jobs:
test:
runs-on: ubuntu-latest

env:
QGIS_VERSION: '3.34'
QGIS_PREFIX_PATH: '/usr'
PYTHONPATH: '${PYTHONPATH}:${QGIS_PREFIX_PATH}/share/qgis/python'

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QGIS
- name: Set up QGIS and Python
run: |
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo add-apt-repository -y ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install -y qgis python3-qgis
sudo apt-get install -y qgis python3-qgis qgis-plugin-grass
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python3 -m pip install --upgrade pip
pip install pytest pytest-qt PyQt5
- name: Install dependencies
- name: Set up QGIS environment variables
run: |
python -m pip install --upgrade pip
pip install pytest pytest-qt PyQt5
export PYTHONPATH="${PYTHONPATH}:${QGIS_PREFIX_PATH}/share/qgis/python"
export QGIS_PREFIX_PATH="/usr"
export LD_LIBRARY_PATH="${QGIS_PREFIX_PATH}/lib"
export QGIS_DEBUG=0
export QGIS_LOG_FILE=/dev/null
- name: Initialize QGIS
run: python3 -c "from qgis.core import QgsApplication; QgsApplication.setPrefixPath('${QGIS_PREFIX_PATH}', True); QgsApplication.initQgis()"

- name: Run tests
run: pytest test_qgis_color.py
run: pytest test/test_qgis_color_func.py

0 comments on commit 16ef238

Please sign in to comment.