-
Notifications
You must be signed in to change notification settings - Fork 12
55 lines (48 loc) · 1.2 KB
/
ci-tests.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
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
test:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.12"]
os: [ubuntu-24.04]
defaults:
run:
shell: bash -l {0}
steps:
# Checkout current git repository
- name: Checkout
uses: actions/checkout@v4.1.7
# Install Micromamba with conda-forge dependencies
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1.9.0
with:
environment-name: cupy-xarray
condarc: |
channels:
- conda-forge
- nodefaults
create-args: >-
cupy-core
dask
netcdf4
pip
pooch
python=${{ matrix.python-version }}
pytest
xarray
# Install the package that we want to test
- name: Install the package
run: python -m pip install .
# Run the unit tests
- name: Test with pytest
run: |
pytest --verbose cupy_xarray/tests/