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