Skip to content

Commit 1d8a832

Browse files
committed
modernise unittesting
1 parent 6eb8ba8 commit 1d8a832

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/testing.yml

+4-21
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,16 @@ jobs:
1414
matrix:
1515
include:
1616
- 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
2018
steps:
2119
- uses: actions/checkout@v4
2220
- name: Setup Mambaforge
23-
uses: conda-incubator/setup-miniconda@v3
21+
uses: conda-incubator/setup-miniconda@v4
2422
with:
2523
python-version: ${{ matrix.python-version }}
26-
miniforge-variant: Mambaforge
24+
miniforge-version: latest
2725
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
4427
- name: run tests
4528
shell: bash -l {0}
4629
run: |

0 commit comments

Comments
 (0)