Skip to content

Commit

Permalink
Merge b3ec9a7 into 82426bd
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Nov 11, 2020
2 parents 82426bd + b3ec9a7 commit a38ddee
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Tests

on: [push, pull_request]

jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0

test:
needs: linting
name: ${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
conda-channels: conda-forge

- name: Install Env
shell: bash
run: conda create -n test python=${{ matrix.python-version }} rasterio xarray scipy pyproj netcdf4 dask pandoc

- name: Check and Log Environment
shell: bash
run: |
conda activate test
python -V
python -c "import rioxarray; rioxarray.show_versions();"
conda info
- name: Test
shell: bash
run: |
conda activate test
py.test --cov-report term-missing --cov=rioxarray
- name: Test Build docs
shell: bash
if: contains(matrix.os, 'ubuntu')
run: |
source activate test
make-docs
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.os }}-python-${{ matrix.python-version }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit a38ddee

Please sign in to comment.