8
8
9
9
jobs :
10
10
test :
11
-
12
11
strategy :
13
12
fail-fast : false # don't cancel other matrix jobs when one fails
14
13
matrix :
@@ -31,16 +30,23 @@ jobs:
31
30
runs-on : ${{ matrix.os }}
32
31
33
32
steps :
34
- - uses : actions/checkout@v3
33
+ # We check out only a limited depth and then pull tags to save time
34
+ - name : Checkout source
35
+ uses : actions/checkout@v3
36
+ with :
37
+ fetch-depth : 100
38
+
39
+ - name : Get tags
40
+ run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
35
41
36
- - name : Set up conda environment
42
+ - name : Install Conda environment with Micromamba
37
43
if : matrix.environment-type == 'conda'
38
- uses : conda-incubator/setup-miniconda@v2
44
+ uses : mamba-org/provision-with-micromamba@v12
39
45
with :
40
- activate-environment : test_env
41
46
environment-file : ${{ env.REQUIREMENTS }}
42
- python-version : ${{ matrix.python-version }}
43
- auto-activate-base : false
47
+ cache-downloads : true
48
+ extra-specs : |
49
+ python=${{ matrix.python-version }}
44
50
env :
45
51
# build requirement filename. First replacement is for the python
46
52
# version, second is to add "-min" if needed
@@ -49,14 +55,19 @@ jobs:
49
55
- name : List installed package versions (conda)
50
56
if : matrix.environment-type == 'conda'
51
57
shell : bash -l {0} # necessary for conda env to be active
52
- run : conda list
58
+ run : micromamba list
53
59
54
60
- name : Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
55
61
if : matrix.environment-type == 'bare'
56
62
uses : actions/setup-python@v1
57
63
with :
58
64
python-version : ${{ matrix.python-version }}
59
65
66
+ - name : Install pvlib
67
+ if : matrix.environment-type == 'conda'
68
+ shell : bash -l {0}
69
+ run : python -m pip install --no-deps .
70
+
60
71
- name : Set up bare environment
61
72
if : matrix.environment-type == 'bare'
62
73
run : |
0 commit comments