QGIS and Python installed correctly, test fails on comparing files. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QGIS Color Table Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up QGIS and Python | |
run: | | |
sudo add-apt-repository -y ppa:ubuntugis/ppa | |
sudo apt-get update | |
sudo apt-get install -y qgis python3.10 python3.10-dev python3-pip | |
sudo apt-get install -y qgis-plugin-grass | |
python3.10 -m pip install --upgrade pip | |
python3.10 -m pip install pytest pytest-qt PyQt6 | |
sudo apt-get install -y gdb | |
- name: Set up QGIS environment variables | |
run: | | |
echo "QGIS_PREFIX_PATH=/usr" >> $GITHUB_ENV | |
echo "PYTHONPATH=/usr/share/qgis/python:$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "LD_LIBRARY_PATH=/usr/lib" >> $GITHUB_ENV | |
echo "QGIS_DEBUG=0" >> $GITHUB_ENV | |
echo "QGIS_LOG_FILE=/dev/null" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
export QGIS_PREFIX_PATH="/usr" | |
export PYTHONPATH="/usr/share/qgis/python:$GITHUB_WORKSPACE" | |
export LD_LIBRARY_PATH="/usr/lib" | |
export QGIS_DEBUG=0 | |
export QGIS_LOG_FILE=/dev/null | |
pytest test/test_qgis_color_func.py |