Skip to content

Commit b9c67b5

Browse files
authored
Updated miniconda setup (#1449)
1 parent 869e041 commit b9c67b5

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

.github/workflows/hvd-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: Setup Miniconda
28-
uses: goanpeca/setup-miniconda@v1
28+
uses: conda-incubator/setup-miniconda@v2
2929
with:
3030
miniconda-version: "latest"
3131
python-version: ${{ matrix.python-version }}
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
on:
1+
on:
2+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#onschedule
23
schedule:
34
# Run at 00:00 UTC Every Day
45
- cron: '0 0 * * *'
@@ -20,28 +21,21 @@ jobs:
2021

2122
steps:
2223
- uses: actions/checkout@v2
23-
- name: Setup Conda
24-
run: |
25-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
26-
bash miniconda.sh -b -p $HOME/miniconda
27-
export PATH="$HOME/miniconda/bin:$PATH"
28-
conda config --set always_yes yes --set changeps1 no
29-
conda update -q conda
30-
# Useful for debugging any issues with conda
31-
conda info -a
32-
conda create -q -n test-environment pytorch=${{ matrix.pytorch-version }} cpuonly python=${{ matrix.python-version }} -c pytorch
33-
24+
25+
- name: Setup Miniconda
26+
uses: conda-incubator/setup-miniconda@v2
27+
with:
28+
miniconda-version: "latest"
29+
python-version: ${{ matrix.python-version }}
30+
3431
- name: Install dependencies
32+
shell: bash -l {0}
3533
run: |
36-
export PATH="$HOME/miniconda/bin:$PATH"
37-
source activate test-environment
38-
# Keep fix in case of problem with torchvision nightly releases
39-
conda install torchvision cpuonly python=${{ matrix.python-version }} -c pytorch
34+
conda install pytorch=${{ matrix.pytorch-version }} torchvision cpuonly python=${{ matrix.python-version }} -c pytorch
4035
pip install -r requirements-dev.txt
4136
python setup.py install
4237
4338
- name: Run Tests
39+
shell: bash -l {0}
4440
run: |
45-
export PATH="$HOME/miniconda/bin:$PATH"
46-
source activate test-environment
4741
py.test tests -vvv

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v2
4646
- name: Setup Miniconda
47-
uses: goanpeca/setup-miniconda@v1
47+
uses: conda-incubator/setup-miniconda@v2
4848
with:
4949
miniconda-version: "latest"
5050
python-version: ${{ matrix.python-version }}
@@ -54,8 +54,6 @@ jobs:
5454
run: |
5555
conda install pytorch torchvision cpuonly -c ${{ matrix.pytorch-channel }}
5656
pip install -r requirements-dev.txt
57-
# Fixes #1153
58-
pip install --upgrade scipy==1.4.1
5957
python setup.py install
6058
6159
- name: Run Mypy

0 commit comments

Comments
 (0)