Skip to content

Changed asc files level values into new asc files (e.g. msw_inv.asc).… #311

Changed asc files level values into new asc files (e.g. msw_inv.asc).…

Changed asc files level values into new asc files (e.g. msw_inv.asc).… #311

---
name: Python tests
on:
push:
pull_request:
branches: [master]
jobs:
windows-conda-tests:
runs-on: "windows-latest"
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
environment-file:
- name: Checkout
uses: actions/checkout@v2.3.1
- 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@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
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