-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (42 loc) · 1.12 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on:
push:
branches: [main]
pull_request:
types: [ready_for_review]
jobs:
run-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
fail-fast: false
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- name: check out repository
uses: actions/checkout@v2
- name: set up conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: testing-env
python-version: ${{ matrix.python-version }}
auto-update-conda: true
mamba-version: "*"
channels: conda-forge
channel-priority: true
- name: install package dependencies
run: |
mamba install numpy
mamba install pandas
- name: install package test dependencies
run: |
mamba install netCDF4
- name: install package
run: |
pip install -e .
- name: run all tests
run: |
(cd ./tests && python run_all_tests.py)