-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split mamba and conda files and CIs entirely
- Loading branch information
1 parent
3d1ec08
commit 0043f75
Showing
5 changed files
with
89 additions
and
36 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
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,80 @@ | ||
name: CI (conda) | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'master' | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' # Daily “At 00:00” | ||
|
||
jobs: | ||
test: | ||
name: (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "ubuntu-latest", "macos-latest"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Install tcsh and byacc (Linux) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install tcsh | ||
sudo apt-get install byacc | ||
|
||
- name: Install dependencies (Darwin) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew update | ||
brew install --cask xquartz | ||
|
||
- name: Conda setup | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: ncl_build | ||
python-version: 3.7 | ||
channels: conda-forge | ||
|
||
- name: Conda install (Darwin) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
conda env update --file .build/envs/Darwin.yml --prune | ||
|
||
- name: Conda install (Linux) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
conda env update --file .build/envs/Linux.yml --prune | ||
|
||
- name: Conda install additional dependencies | ||
run: | | ||
conda install -n ncl_build -c conda-forge imagemagick esmf | ||
|
||
- name: Conda install libgdal=2.4 | ||
run: | | ||
conda install -n ncl_build -c conda-forge libgdal=2.4 | ||
|
||
- name: Build ncl | ||
run: | | ||
bash .build/conda_build.sh | ||
|
||
- name: Run tests | ||
run: | | ||
test "`ncl -V`" = "`cat version`" | ||
git clone https://github.com/NCAR/ncl_ci_test | ||
cd ncl_ci_test | ||
source run_tests.bash |
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