-
-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (56 loc) · 1.67 KB
/
python-app.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
56
57
58
59
60
61
62
63
64
65
66
name: Test DeepIceDrain
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
test:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version: [3.8]
os: [ubuntu-22.04]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout current git repository
uses: actions/[email protected]
- name: Setup Mambaforge
uses: conda-incubator/[email protected]
with:
activate-environment: deepicedrain
channels: conda-forge
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true
environment-file: environment-linux-64.lock
show-channel-urls: true
- name: Install Poetry python dependencies
run: poetry install --no-root
- name: Install deepicedrain package
run: poetry install
# Pull test data from dvc remote (DAGsHub)
- name: Pull test data from dvc remote
run: |
dvc pull ATLXI/df_dhdt_slessor_downstream.parquet \
ATLXI/df_dhdt_whillans_upstream.parquet \
ATLXI/df_dhdt_whillans_downstream.parquet
ls -lhR ATLXI/
- name: Display virtualenv and installed package information
run: |
mamba info
mamba list
poetry env info
poetry show
- name: Code Quality
run: poetry run black . --check
- name: Test with pytest
run: poetry run pytest --verbose --doctest-modules deepicedrain/