Harmonize data types and no-data handling in grids #413
Workflow file for this run
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: Python tests | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
jobs: | |
windows-conda-tests: | |
runs-on: "windows-latest" | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
environment-file: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: PowerShell | |
shell: powershell | |
run: | | |
conda config --add channels conda-forge | |
conda config --set channel_priority strict | |
conda install pandas=1.5.3 pyyaml rasterio fiona | |
pip install -e . | |
pip install -r dev-requirements.txt coverage | |
pytest --cov niche_vlaanderen --cov-report xml --verbose --tb=long | |
- name: Upload coverage | |
run: | | |
python -m pip install coveralls | |
coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_PARALLEL: true | |
linux-pip-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
fail-fast: [false] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies & run unit tests | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libgdal-dev gdal-bin pandoc | |
python -m pip install --upgrade pip | |
pip install coveralls wheel | |
ls | |
pip install -r dev-requirements.txt | |
pytest --cov niche_vlaanderen --cov --verbose --tb=long | |
- name: Upload coverage | |
run: | | |
python -m pip install coveralls | |
COVERALLS_PARALLEL=true coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
finish-coverage: | |
runs-on: ubuntu-latest | |
needs: | |
- windows-conda-tests | |
- linux-pip-tests | |
steps: | |
- name: Coveralls finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |