forked from e-mission/e-mission-server
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mongodb install action only works on ubuntu
So we test install only ubuntu + osx and go back to linux only for install + tests This should also catch any inconsistencies between the dev setup and the test setup scripts (similar to e-mission/e-mission-docs#513 (comment))
- Loading branch information
Showing
2 changed files
with
70 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: osx-ubuntu-manual-install | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '5 4 * * 0' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-latest, macos-latest] | ||
include: | ||
- os: macos-latest | ||
PLATFORM: MacOSX-x86_64 | ||
- os: ubuntu-16.04 | ||
PLATFORM: Linux-x86_64 | ||
- os: ubuntu-18.04 | ||
PLATFORM: Linux-x86_64 | ||
- os: ubuntu-latest | ||
PLATFORM: Linux-x86_64 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Check existing version of miniconda | ||
shell: bash -l {0} | ||
run: conda info -a | ||
|
||
- name: Install miniconda | ||
shell: bash -l {0} | ||
run: | | ||
source setup/setup_conda.sh ${{ matrix.PLATFORM }} | ||
which conda | ||
- name: Check whether the CI environment variable is set | ||
shell: bash -l {0} | ||
run: | | ||
source "$HOME/miniconda/etc/profile.d/conda.sh" | ||
echo $CI | ||
- name: Setup the emission environment | ||
shell: bash -l {0} | ||
run: | | ||
conda --version | ||
which conda | ||
source "$HOME/miniconda/etc/profile.d/conda.sh" | ||
conda --version | ||
source setup/setup.sh | ||
- name: Teardown the emission environment | ||
shell: bash -l {0} | ||
run: | | ||
source "$HOME/miniconda/etc/profile.d/conda.sh" | ||
source setup/teardown.sh |
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