Skip to content

Commit aa40818

Browse files
authored
Merge pull request #83 from scottyhq/action
add github action for pytest on linux
2 parents a654542 + 4e99025 commit aa40818

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: "*"
6+
pull_request:
7+
branches: master
8+
9+
jobs:
10+
test:
11+
name: ${{ matrix.CONDA_ENV }}-build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
CONDA_ENV: [36, 36-defaults, 37-nodefaults]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Miniconda
22+
uses: conda-incubator/setup-miniconda@v1
23+
with:
24+
auto-update-conda: true
25+
auto-activate-base: false
26+
activate-environment: test_env
27+
environment-file: ci/environment-${{ matrix.CONDA_ENV }}.yml
28+
29+
- name: Development Install Intake-Xarray
30+
shell: bash -l {0}
31+
run: |
32+
python -m pip install --no-deps -e .
33+
conda list
34+
35+
- name: Run Tests
36+
shell: bash -l {0}
37+
run: |
38+
pytest --verbose

0 commit comments

Comments
 (0)