File tree 1 file changed +4
-21
lines changed
1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -14,33 +14,16 @@ jobs:
14
14
matrix :
15
15
include :
16
16
- operating-system : ubuntu-latest
17
- python-version : 3.9
18
- label : linux-64-py-3-9
19
- prefix : /usr/share/miniconda3/envs/my-env
17
+ python-version : 3.11
20
18
steps :
21
19
- uses : actions/checkout@v4
22
20
- name : Setup Mambaforge
23
- uses : conda-incubator/setup-miniconda@v3
21
+ uses : conda-incubator/setup-miniconda@v4
24
22
with :
25
23
python-version : ${{ matrix.python-version }}
26
- miniforge-variant : Mambaforge
24
+ miniforge-version : latest
27
25
channels : conda-forge
28
- channel-priority : strict
29
- activate-environment : my-env
30
- use-mamba : true
31
- - name : Set cache date and number
32
- run : |
33
- echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
34
- cat .github/variables/cache_number.env >> $GITHUB_ENV
35
- - uses : actions/cache@v2
36
- with :
37
- path : ${{ matrix.prefix }}
38
- key : ${{ matrix.label }}-conda-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
39
- id : cache
40
- - name : Update environment
41
- run : mamba env update -n my-env -f environment.yml
42
- if : steps.cache.outputs.cache-hit != 'true'
43
-
26
+ environment-file : environment.yml
44
27
- name : run tests
45
28
shell : bash -l {0}
46
29
run : |
You can’t perform that action at this time.
0 commit comments