-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add download and environment caching (#38)
- Loading branch information
Showing
23 changed files
with
190,225 additions
and
6,015 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
dist/* linguist-generated=true | ||
dist/** linguist-generated=true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build and lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: null | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
npm install | ||
npm run build | ||
git diff --exit-code | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
npm install | ||
npm run lint |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Generated by conda-lock. | ||
# platform: linux-64 | ||
# input_hash: 998e5781b9db69d647b7a60df21f1d24d125dc81d1e32a2aada7aefb6bd7d477 | ||
@EXPLICIT | ||
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2#d7c89558ba9fa0495403155b64376d81 | ||
https://conda.anaconda.org/conda-forge/linux-64/libgomp-11.2.0-h1d223b6_12.tar.bz2#763c5ec8116d984b4a33342236d7da36 | ||
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-1_gnu.tar.bz2#561e277319a41d4f24f5c05a9ef63c04 | ||
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-11.2.0-h1d223b6_12.tar.bz2#d34efbb8d7d6312c816b4bb647b818b1 | ||
https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.11-h36c2ea0_1013.tar.bz2#dcddf696ff5dfcab567100d691678e18 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Generated by conda-lock. | ||
# platform: osx-64 | ||
# input_hash: d73572c6997a61acdd2cd69b693154ebe6d4a74fdf9a6fc0ea0f0be858dc326a | ||
@EXPLICIT | ||
https://conda.anaconda.org/conda-forge/osx-64/libzlib-1.2.11-h9173be1_1013.tar.bz2#a3a6a53beaa92c5cfe52ee3a198e78cc |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Generated by conda-lock. | ||
# platform: win-64 | ||
# input_hash: d0dd90bb50512cf5f723c8fea07f6c42f234db358f3c3b262b8ababd219a13be | ||
@EXPLICIT | ||
https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.20348.0-h57928b3_0.tar.bz2#6d666b6ea8251231ff508062d1e41f9c | ||
https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.29.30037-h902a5da_6.tar.bz2#33d07ebe91062743eabc9e53a60d18e1 | ||
https://conda.anaconda.org/conda-forge/win-64/vc-14.2-hb210afc_6.tar.bz2#c2aecbc9b00ba6f352e27d3d61fd31fb | ||
https://conda.anaconda.org/conda-forge/win-64/libzlib-1.2.11-h8ffe710_1013.tar.bz2#b28dd2488b4e5f892c67071acc1d0a8c |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: Test caching | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: null | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
test_download1: | ||
name: Test download cache 1/2 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install mamba | ||
uses: ./ | ||
with: | ||
cache-downloads: true | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" | ||
test_download2: | ||
name: Test download cache 2/2 | ||
needs: [test_download1] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install mamba | ||
uses: ./ | ||
with: | ||
cache-downloads: true | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" | ||
test_env1: | ||
name: Test env cache 1/3 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install mamba | ||
uses: ./ | ||
with: | ||
cache-env: true | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" | ||
test_env2: | ||
name: Test env cache 2/3 | ||
needs: [test_env1] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install mamba | ||
uses: ./ | ||
with: | ||
cache-env: true | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" | ||
test_env3: | ||
if: false # Doesn't work | ||
name: Test env cache 3/3 | ||
needs: [test_env1] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install mamba | ||
uses: ./ | ||
with: | ||
cache-env: true | ||
cache-env-always-update: true | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Test lock files | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: null | ||
|
||
jobs: | ||
test: | ||
name: Test lock files | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
lock-file: conda-win-64.lock | ||
- os: ubuntu-latest | ||
lock-file: conda-linux-64.lock | ||
- os: macos-latest | ||
lock-file: conda-osx-64.lock | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install from lockfile | ||
uses: ./ | ||
with: | ||
environment-name: lock_test | ||
environment-file: .github/workflows/lockfiles/${{ matrix.lock-file }} | ||
|
||
- name: test environment name | ||
run: | | ||
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'lock_test'" |
Oops, something went wrong.