-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (36 loc) · 932 Bytes
/
test.yml
File metadata and controls
43 lines (36 loc) · 932 Bytes
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
name: Pytest
on:
workflow_dispatch:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: extractions/netrc@v3
with:
machine: urs.earthdata.nasa.gov
username: ${{ secrets.EARTHDATA_USERNAME }}
password: ${{ secrets.EARTHDATA_PASSWORD }}
- uses: mamba-org/setup-micromamba@v3
with:
environment-name: dem-stitcher
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Pytest in conda environment
shell: bash -l {0}
run: |
python -m pip install --no-deps .
pytest . -m 'not notebook'