Skip to content

Commit bbb117f

Browse files
authored
maybe do that more proper?
1 parent c9a7ce3 commit bbb117f

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ jobs:
2424
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
28-
run: |
29-
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
30-
eval "$(micromamba shell hook --shell bash)"
31-
micromamba activate base
32-
micromamba install pytest-cov pytest-mpl xarray netcdf4 pandas numpy scikit-learn scipy pyproj cartopy metpy ipywidgets python=${{ matrix.python-version }} -c conda-forge
33-
python -m pip install .
27+
- name: Install environment with micromamba
28+
- uses: mamba-org/setup-micromamba@v1
29+
with:
30+
environment-file: tests/test-env.yml
31+
create-args: python=${{ matrix.python-version }}
3432
- name: Test with pytest
3533
run: |
3634
eval "$(micromamba shell hook --shell bash)"

tests/test-env.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pyxlma-tests
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- pytest-cov
6+
- pytest-mpl
7+
- xarray
8+
- netcdf4
9+
- pandas
10+
- numpy
11+
- scipy
12+
- scikit-learn
13+
- pyproj
14+
- metpy
15+
- ipywidgets
16+
- pip:
17+
- git+https://github.com/deeplycloudy/lmatools
18+
- -e .

0 commit comments

Comments
 (0)