-
Notifications
You must be signed in to change notification settings - Fork 39
60 lines (54 loc) · 1.55 KB
/
tests_conda.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: TESTS-CONDA-ENV
on:
pull_request:
push:
branches: [master]
jobs:
run:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [windows-latest, ubuntu-latest, macos-latest]
platform: [x64, x32]
experimental: [false]
exclude:
- os: macos-latest
platform: x32
include:
- python-version: "3.12"
os: "ubuntu-latest"
experimental: true
steps:
- uses: actions/checkout@v4
- name: Setup micromamba Env
uses: mamba-org/setup-micromamba@v1
with:
environment-name: TEST
create-args: >-
python=${{ matrix.python-version }}
numpy>1.13.3
cython>=0.29.20
pytest
pytest-cov
- name: Install unstable dependencies
if: matrix.experimental == true
shell: bash -l {0}
run: |
python -m pip install \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/ \
--trusted-host pypi.anaconda.org \
--no-deps --pre --upgrade \
numpy;
python -m pip install -v -e . --no-deps --no-build-isolation --force-reinstall
- name: Install cftime
if: matrix.experimental != true
shell: bash -l {0}
run: |
python -m pip install -v -e . --no-deps --force-reinstall
- name: Run Tests
shell: bash -l {0}
run: |
pytest -vv test