PR: Fix passing multiple channels when creating envs/installing packages with the Conda-like backend #162
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the project's test suite | |
| name: Macos tests | |
| on: [pull_request, push] | |
| concurrency: | |
| group: macos-tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: Test Python ${{ matrix.python-version }} Executable ${{ matrix.conda-like }} | |
| runs-on: macos-latest | |
| timeout-minutes: 25 | |
| env: | |
| PYTHON_VERSION: ${{ matrix.python-version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.9', '3.11'] | |
| conda-like: ['micromamba', 'conda'] | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Install Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| channels: conda-forge | |
| python-version: ${{ matrix.python-version }} | |
| environment-file: requirements/environment.yml | |
| auto-activate-base: false | |
| - name: Install Micromamba and setup as executable backend | |
| if: ${{matrix.conda-like == 'micromamba'}} | |
| shell: bash -l {0} | |
| run: | | |
| curl -Ls https://micro.mamba.pm/api/micromamba/osx-64/1.5.10 | tar -xvj bin/micromamba | |
| echo "ENV_BACKEND_EXECUTABLE=${{ github.workspace }}/bin/micromamba" >> $GITHUB_ENV | |
| - name: Setup executable backend with conda | |
| if: ${{matrix.conda-like == 'conda'}} | |
| shell: bash -l {0} | |
| run: | | |
| echo "ENV_BACKEND_EXECUTABLE=$CONDA/condabin/conda" >> $GITHUB_ENV | |
| - name: Install envs-manager | |
| shell: bash -l {0} | |
| run: | | |
| pip install -e . | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| pytest --cov-report xml --cov=envs_manager --color=yes -vv -x | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| verbose: true |