-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (50 loc) · 1.49 KB
/
python-app-linux.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linux tests
defaults:
run:
shell: bash -l {0}
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
# - uses: mamba-org/provision-with-micromamba@v15
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
micromamba-version: '1.4.5-0'
environment-name: foo
create-args: cdo nco cartopy python=3.12
init-shell: >-
bash
powershell
cache-environment: true
post-cleanup: 'all'
- name: Install dependencies
shell: bash -l {0}
run: |
pip install numpy
pip install dask
python -m pip install .
# pip install .
pip install pandas
pip install rioxarray
pip install pytest
pip install pytest-cov
pip install coverage
- name: Test with pytest
shell: bash -l {0}
run: |
python testing/test_parallel.py
coverage run -m pytest tests/test*.py
coverage report
coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2