Enable ubuntu conda test (#429) #872
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
# workflow name | |
name: Tests | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the wanted branches | |
on: | |
pull_request: | |
push: | |
branches: [master, main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update | |
sudo apt-get install gdal-bin libgdal-dev | |
pip install poetry | |
poetry install | |
- name: Test with pytest | |
run: | | |
poetry run pytest -v |