Skip to content

Commit cbe371f

Browse files
authored
Actions: add minimal.yml (close #820) (#835)
* Actions: add minimal.yml (close #820) Rather than adding fsspec as a dependency to conda-forge, this tests a conda-forge style minimal build for each PR. * Add minimum requirements
1 parent ce01a6d commit cbe371f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/minimal.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow simulates the environment found during a conda-forge build
2+
# and makes sure that Zarr can run without fsspec and other additional libraries.
3+
name: Minimal installation
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup Miniconda
18+
uses: conda-incubator/setup-miniconda@master
19+
with:
20+
channels: conda-forge
21+
environment-file: environment.yml
22+
activate-environment: minimal
23+
- name: Tests
24+
shell: "bash -l {0}"
25+
run: |
26+
conda activate minimal
27+
python -m pip install -e .
28+
pytest -svx

environment.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
channels:
2+
- conda-forge
3+
- defaults
4+
dependencies:
5+
- wheel
6+
- numcodecs >= 0.6.4
7+
- numpy >= 1.7
8+
- pip
9+
- pip:
10+
- asciitree
11+
- fasteners
12+
- pytest
13+
- setuptools_scm

0 commit comments

Comments
 (0)