Update test_qgis_color_func.yml #8
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 | |
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 |