-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1003 Bytes
/
pypitest.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
# This workflow will install Python dependencies using Mamba, run tests and lint with a single version of Python
name: pypi-test
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 1" #run every Tuesday night at 2AM UTC
permissions:
contents: read
jobs:
mamba-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
#python-version: ["3.10"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: ecmean
cache-downloads: true
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
xesmf
esmpy
eccodes
pytest
- name: Install ECmean4
run: |
# install package
python -m pip install ECmean4
- name: Test with pytest
run: |
python -m pytest