Repository: ASFHyP3/hyp3-sdk (language: python)

Issue:
pin setup-miniconda to 2.0.1
Avoids `ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /tmp` error introduced with the [2.1.0 release](https://github.com/conda-incubator/setup-miniconda/releases/tag/v2.1.0)

The log output of an example failed action is at https://github.com/ASFHyP3/hyp3-sdk/runs/2231983477?check_suite_focus=true


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml
index 6928d37..c96d9e5 100644
--- a/.github/workflows/distribute.yml
+++ b/.github/workflows/distribute.yml
@@ -42,11 +42,9 @@ jobs:
     steps:
       - uses: actions/checkout@v2
 
-      - uses: conda-incubator/setup-miniconda@v2.0.1
+      - uses: conda-incubator/setup-miniconda@v2
         with:
           mamba-version: "*"
-          channels: conda-forge,nodefaults
-          channel-priority: true
           python-version: 3.8
           activate-environment: hyp3-sdk
           environment-file: environment.yml
diff --git a/environment.yml b/environment.yml
index c307157..633e178 100644
--- a/environment.yml
+++ b/environment.yml
@@ -22,5 +22,4 @@ dependencies:
   - requests
   - tqdm
   - urllib3
-  - pip:
-    - -e .[develop]
+
diff --git a/postBuild b/postBuild
new file mode 100644
index 0000000..5b0aba6
--- /dev/null
+++ b/postBuild
@@ -0,0 +1,6 @@
+#!/bin/bash
+# This file is used by Binder to install this repo into the binder environment
+#    https://mybinder.readthedocs.io/en/latest/using/config_files.html#postbuild-run-code-after-installing-the-environment
+# Notably, providing an environment.yml file means pip files (requirements.txt and setup.py) are ignored
+
+python -m pip install -e .[develop]


Test patch:
diff --git a/.github/workflows/test-and-tag.yml b/.github/workflows/test-and-tag.yml
index 09ffd3d..5b0cda9 100644
--- a/.github/workflows/test-and-tag.yml
+++ b/.github/workflows/test-and-tag.yml
@@ -20,11 +20,9 @@ jobs:
     steps:
       - uses: actions/checkout@v2
 
-      - uses: conda-incubator/setup-miniconda@v2.0.1
+      - uses: conda-incubator/setup-miniconda@v2
         with:
           mamba-version: "*"
-          channels: conda-forge,nodefaults
-          channel-priority: true
           python-version: ${{ matrix.python-version }}
           activate-environment: hyp3-sdk
           environment-file: environment.yml
@@ -32,6 +30,7 @@ jobs:
       - name: Pytest in conda environment
         shell: bash -l {0}
         run: |
+          python -m pip install .[develop]
           pytest --cov=hyp3_sdk
 
   tag: