-
Notifications
You must be signed in to change notification settings - Fork 36
41 lines (35 loc) · 922 Bytes
/
test.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
name: Test
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9","3.10"]
steps:
- uses: actions/checkout@v2
- uses: extractions/netrc@v1
with:
machine: urs.earthdata.nasa.gov
username: ${{ secrets.EARTHDATA_USERNAME }}
password: ${{ secrets.EARTHDATA_PASSWORD }}
- uses: mamba-org/provision-with-micromamba@v15
with:
environment-name: ARIA-tools
environment-file: environment.yml
extra-specs: |
python=${{ matrix.python-version }}
- name: test in conda environment
shell: bash -l {0}
env:
TOPO_API_KEY: ${{ secrets.TOPOAPI }}
run: |
echo $TOPO_API_KEY > ~/.topoapi
python -m pip install .
source tests/test.sh