File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Linux tests
5+
6+ defaults :
7+ run :
8+ shell : bash -l {0}
9+
10+ on :
11+ push :
12+ branches : [ main ]
13+ pull_request :
14+ branches : [ main ]
15+
16+ jobs :
17+ build :
18+
19+ runs-on : " ubuntu-latest"
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ - uses : mamba-org/setup-micromamba@v1
24+ # - uses: mamba-org/provision-with-micromamba@v15
25+ env :
26+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
27+ with :
28+ micromamba-version : ' 1.4.5-0'
29+ environment-name : foo
30+ create-args : nctoolkit cmocean cartopy pandoc python=3.12 rpy2 r-base r-tidyverse r-ggtext jupyter-book r-mapdata texlive-core
31+ init-shell : >-
32+ bash
33+ powershell
34+ cache-environment : true
35+ post-cleanup : ' all'
36+ - name : Install dependencies
37+ shell : bash -l {0}
38+ run : |
39+
40+ ##sudo apt-get install texlive
41+ mamba install pandoc r-ggthemes r-ggridges r-maps r-plotrix r-arrow r-pyarrow r-cowplot -y
42+ python -m pip install .
43+ pip install pyarrow
44+ pip install rioxarray
45+ pip install pytest
46+ pip install pytest-cov
47+ pip install coverage
48+
49+ - name : Test with pytest
50+ shell : bash -l {0}
51+ run : |
52+ pytest tests/test*.py
53+
You can’t perform that action at this time.
0 commit comments