diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef75aae8..f38c62d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,26 +68,37 @@ jobs: # Standard python fails on windows without GDAL installation # Using custom bash shell ("shell: bash -l {0}") with Miniconda - - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@v2 + # - name: Setup Miniconda + # uses: conda-incubator/setup-miniconda@v2 + # with: + # # python-version: ${{ matrix.python-version }} + # # #mamba-version: "0.20.0" + # # channels: conda-forge + # # auto-update-conda: true + # # activate-environment: pyemu + # # use-only-tar-bz2: true + # miniforge-version: latest + # # miniconda-version: "latest" + # python-version: ${{ matrix.python-version }} + # # mamba-version: "*" + # # channels: conda-forge + # miniforge-variant: Mambaforge + # # auto-update-conda: true + # activate-environment: pyemu + # use-mamba: true + # # environment-file: etc/environment.yml + # # use-only-tar-bz2: true + + - name: setup micromamba + uses: mamba-org/setup-micromamba@v1 with: - # python-version: ${{ matrix.python-version }} - # #mamba-version: "0.20.0" - # channels: conda-forge - # auto-update-conda: true - # activate-environment: pyemu - # use-only-tar-bz2: true - miniforge-version: latest - # miniconda-version: "latest" - python-version: ${{ matrix.python-version }} - # mamba-version: "*" - # channels: conda-forge - miniforge-variant: Mambaforge - # auto-update-conda: true - activate-environment: pyemu - use-mamba: true - # environment-file: etc/environment.yml - # use-only-tar-bz2: true + micromamba-version: '1.3.1-0' + environment-file: etc/environment.yml + init-shell: >- + bash + powershell + cache-environment: true + post-cleanup: 'all' # - name: Add packages to pyemu environment using mamba or conda # shell: bash -l {0} @@ -98,32 +109,32 @@ jobs: # conda env update --name pyemu --file etc/environment.yml # fi - - name: Add packages to pyemu environment using conda - if: ${{ matrix.python-version < 3.8 }} - # if: ${{ runner.os == 'Windows' || matrix.python-version < 3.8 }} - shell: bash -l {0} - run: | - conda env update --name pyemu --file etc/environment.yml + # - name: Add packages to pyemu environment using conda + # if: ${{ matrix.python-version < 3.8 }} + # # if: ${{ runner.os == 'Windows' || matrix.python-version < 3.8 }} + # shell: bash -l {0} + # run: | + # conda env update --name pyemu --file etc/environment.yml - - name: Add packages to pyemu environment using mamba - # if: ${{ runner.os != 'Windows' && matrix.python-version >= 3.8 }} - if: ${{ matrix.python-version >= 3.8 }} - shell: bash -l {0} - run: | - mamba env update --name pyemu --file etc/environment.yml + # - name: Add packages to pyemu environment using mamba + # # if: ${{ runner.os != 'Windows' && matrix.python-version >= 3.8 }} + # if: ${{ matrix.python-version >= 3.8 }} + # shell: bash -l {0} + # run: | + # mamba env update --name pyemu --file etc/environment.yml - - name: Install Flopy & pyemu? - shell: bash -l {0} - run: | - # git clone -b develop --depth 1 https://github.com/modflowpy/flopy.git - # cd flopy - # python setup.py install - # cd .. - # pip install https://github.com/modflowpy/pymake/zipball/master - git clone -b develop --depth 1 https://github.com/pypest/pyemu.git - cd pyemu - python setup.py install - cd .. + # - name: Install Flopy & pyemu? + # shell: bash -l {0} + # run: | + # # git clone -b develop --depth 1 https://github.com/modflowpy/flopy.git + # # cd flopy + # # python setup.py install + # # cd .. + # # pip install https://github.com/modflowpy/pymake/zipball/master + # git clone -b develop --depth 1 https://github.com/pypest/pyemu.git + # cd pyemu + # python setup.py install + # cd .. # - name: Get specific version CMake, v3.19 # if: ${{ runner.os == 'Windows' }} diff --git a/etc/environment.yml b/etc/environment.yml index c6868c3d..07aeb036 100644 --- a/etc/environment.yml +++ b/etc/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: # required - - python=3.9 + - python<=3.11 - numpy>=1.15.0 - pandas - scipy @@ -21,3 +21,9 @@ dependencies: - mfpymake - imp - nose + - pip + - git + - imp + - pip: + - git+https://github.com/pypest/pyemu.git@develop + - git+https://github.com/modflowpy/flopy.git \ No newline at end of file