From 7d242a77cde2699bbdeb6c6cb2871d3a78c6894a Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:06:11 -0400 Subject: [PATCH] Install dependencies for tests via mamba (#148) --- .github/workflows/main.yml | 19 +++++++++++-------- ci/environment.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 ci/environment.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e63feab..7daafb43 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,18 +26,21 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Python - id: setup-python - uses: actions/setup-python@v5 + - name: Setup micromamba + uses: mamba-org/setup-micromamba@v1 with: - python-version: ${{ matrix.python-version }} - cache: pip - cache-dependency-path: pyproject.toml + environment-file: ci/environment.yml + cache-environment: true + create-args: >- + python=${{matrix.python-version}} - name: Install virtualizarr run: | - python -m pip install -e ".[test]" - + python -m pip install -e . --no-deps + - name: Conda list information + run: | + conda env list + conda list - name: Running Tests run: | diff --git a/ci/environment.yml b/ci/environment.yml new file mode 100644 index 00000000..d8af6bf5 --- /dev/null +++ b/ci/environment.yml @@ -0,0 +1,28 @@ +name: virtualizarr-tests +channels: + - conda-forge + - nodefaults +dependencies: + - h5netcdf + - h5py + - hdf5 + - netcdf4 + - xarray>=2024.5.0 + - kerchunk>=0.2.5 + - pydantic + - numpy + - ujson + - packaging + - universal_pathlib + # Testing + - codecov + - pre-commit + - ruff + - pytest-mypy + - pytest-cov + - pytest + - pooch + - scipy + - fsspec + - s3fs + - fastparquet