Skip to content

Commit

Permalink
Update asp.yml (#19)
Browse files Browse the repository at this point in the history
* Update asp.yml, updated various actions I use
* fixed channel priority
* added cache
  • Loading branch information
AndrewAnnex committed Dec 4, 2020
1 parent 83dcd01 commit 33d80e8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ hashFiles('asp.yml') }}
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.0.1
with:
mamba-version: "*"
activate-environment: asp
environment-file: asp.yml
python-version: 3.6
channels: nasa-ames-stereo-pipeline,usgs-astrogeology,conda-forge,defaults
channel-priority: true
channel-priority: strict
auto-update-conda: true
use-only-tar-bz2: true
- name: isis3 path inits
Expand Down Expand Up @@ -59,6 +67,10 @@ jobs:
run: |
conda info
conda list
- name: check isis shared libraries
shell: bash -l {0}
run: |
ldd `which qview`
- name: test for asap
shell: bash -l {0}
run: asap
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ hashFiles('asp.yml') }}
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v2.0.1
with:
mamba-version: "*"
activate-environment: asp
environment-file: asp.yml
python-version: 3.6
channels: nasa-ames-stereo-pipeline,usgs-astrogeology,conda-forge,defaults
channel-priority: true
channel-priority: strict
auto-update-conda: true
use-only-tar-bz2: true
- name: install asap
Expand All @@ -25,6 +33,10 @@ jobs:
run: |
conda info
conda list
- name: check isis shared libraries
shell: bash -l {0}
run: |
ldd `which qview`
- name: test for asap
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion asp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.6
- python=>3.6
- stereo-pipeline==2.7.0
- nb_conda_kernels
- jupyterlab
Expand Down

0 comments on commit 33d80e8

Please sign in to comment.