test_qgis_color_func.yml in .github #1
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
9name: QGIS Color Table Tests | ||
Check failure on line 1 in .github/workflows/test_qgis_color_func.yml GitHub Actions / .github/workflows/test_qgis_color_func.ymlInvalid workflow file
|
||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up QGIS | ||
run: | | ||
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable | ||
sudo apt-get update | ||
sudo apt-get install -y qgis python3-qgis | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
- name: Install QGIS dependencies | ||
run: | | ||
sudo apt-get install -y python3-pytest | ||
sudo apt-get install -y python3-pytest-qt | ||
- name: Run tests | ||
run: pytest test_qgis_color.py |