Skip to content

Update test_qgis_color_func.yml #8

Update test_qgis_color_func.yml

Update test_qgis_color_func.yml #8

name: QGIS Color Table Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
QGIS_VERSION: '3.16'
QGIS_PREFIX_PATH: "/usr"
PYTHONPATH: "${PYTHONPATH}:${QGIS_PREFIX_PATH}/share/qgis/python"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: List directory contents
run: ls -R
- name: Set up QGIS
run: |
sudo add-apt-repository -y ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install -y qgis python3-qgis qgis-plugin-grass
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-qt PyQt5
- name: Run tests
run: |
export PYTHONPATH="${PYTHONPATH}:${QGIS_PREFIX_PATH}/share/qgis/python"
pytest test/test_qgis_color_func.py