Skip to content

Commit 0cd9194

Browse files
committed
install repo2docker into test environment only
No need to install from environment.yml twice, since repo2docker does a separate clean install.
1 parent 962c629 commit 0cd9194

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/repo2docker.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
repo2docker:
1010
name: Run repo2docker
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash -l {0}
1215

1316
steps:
1417
- name: Checkout
@@ -17,20 +20,15 @@ jobs:
1720
- name: Setup Miniconda
1821
uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
1922
with:
20-
activate-environment: try-gmt
2123
conda-remove-defaults: "true"
22-
environment-file: environment.yml
2324
miniforge-version: latest
2425
use-mamba: true
2526

26-
- name: Install dependencies
27-
shell: bash -l {0}
28-
run: conda install jupyter-repo2docker
27+
- name: Install repo2docker
28+
run: mamba install jupyter-repo2docker
2929

30-
- name: Show installed package
31-
shell: bash -l {0}
32-
run: conda list
30+
- name: Show installed packages
31+
run: mamba list
3332

3433
- name: Run repo2docker
35-
shell: bash -l {0}
3634
run: jupyter-repo2docker --no-run --ref ${{ github.event.pull_request.head.sha }} https://github.com/${{ github.event.pull_request.head.repo.full_name }}

0 commit comments

Comments
 (0)