Pyproject tinkering #266
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: Run tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
syntax-flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
- name: Lint with flake8 | |
uses: py-actions/flake8@v2 | |
tests-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-version: latest | |
miniforge-variant: Mambaforge | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: conda install gdal cloudpickle scipy | |
- name: Test with testrios | |
shell: bash -l {0} | |
run: | | |
pip install . | |
testrios | |
tests-ubuntu-no-conda: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
sudo apt-get install -y --no-install-recommends \ | |
python3-gdal python3-cloudpickle python3-scipy python3-pip | |
python -m pip install --upgrade pip | |
- name: Test with testrios | |
shell: bash -l {0} | |
run: | | |
pip install . | |
testrios | |
tests-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-version: latest | |
miniforge-variant: Mambaforge | |
- name: Install dependencies | |
run: conda install gdal cloudpickle scipy | |
- name: Test with testrios | |
run: | | |
pip install . | |
testrios | |
tests-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-version: latest | |
miniforge-variant: Mambaforge | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: conda install gdal cloudpickle scipy | |
- name: Test with testrios | |
shell: bash -l {0} | |
run: | | |
pip install . | |
testrios |