forked from opendatacube/datacube-core
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.04 KB
/
test-conda-build.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
name: Conda Smoke Test
on:
pull_request:
paths:
- '**'
push:
paths:
- '**'
jobs:
check-conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v4
env:
# Increase this value to reset cache if setup.py has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda-environment.yml') }}
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: conda-environment.yml
auto-update-conda: true
python-version: ${{ matrix.python-version}}
- name: Bash
shell: bash -l {0}
run: |
pip install .
python --version
datacube --version
conda env export