Skip to content

Commit

Permalink
Merge pull request #267 from pysal/jGaboardi-patch-1
Browse files Browse the repository at this point in the history
Initializing complete Github Actions CI
  • Loading branch information
sjsrey authored Mar 28, 2020
2 parents 6dbcaf2 + 3cb7558 commit 0a84e81
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '59 11 * * *'

jobs:
unittests:
name: conda (${{ matrix.os }}, ${{ matrix.environment-file }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
environment-file: [ci/travis/36-latest-conda-forge.yaml, ci/travis/37-latest-conda-forge.yaml, ci/travis/38-latest-conda-forge.yaml]
steps:
- uses: actions/checkout@v2
- uses: goanpeca/setup-miniconda@v1
with:
miniconda-version: 'latest'
auto-update-conda: true
auto-activate-base: false
environment-file: ${{ matrix.environment-file }}
activate-environment: test
- shell: bash -l {0}
run: conda info --all
- shell: bash -l {0}
run: conda list
- shell: bash -l {0}
run: python -c 'import libpysal; libpysal.examples.fetch_all()'
- shell: bash -l {0}
run: py.test -v libpysal --cov=libpysal --cov-report=xml
- name: codecov (${{ matrix.os }}, ${{ matrix.environment-file }})
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: libpysal-codecov

0 comments on commit 0a84e81

Please sign in to comment.