Skip to content

Commit

Permalink
Merge pull request #83 from scottyhq/action
Browse files Browse the repository at this point in the history
add github action for pytest on linux
  • Loading branch information
martindurant authored Oct 9, 2020
2 parents a654542 + 4e99025 commit aa40818
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: "*"
pull_request:
branches: master

jobs:
test:
name: ${{ matrix.CONDA_ENV }}-build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
CONDA_ENV: [36, 36-defaults, 37-nodefaults]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v1
with:
auto-update-conda: true
auto-activate-base: false
activate-environment: test_env
environment-file: ci/environment-${{ matrix.CONDA_ENV }}.yml

- name: Development Install Intake-Xarray
shell: bash -l {0}
run: |
python -m pip install --no-deps -e .
conda list
- name: Run Tests
shell: bash -l {0}
run: |
pytest --verbose

0 comments on commit aa40818

Please sign in to comment.