Skip to content

Commit

Permalink
Mongodb install action only works on ubuntu
Browse files Browse the repository at this point in the history
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
shankari committed Apr 16, 2020
1 parent 8763c27 commit 565bd70
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 12 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/osx-ubuntu-manual-install.yml
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
15 changes: 3 additions & 12 deletions .github/workflows/test-with-manual-install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: test-with-manual-install
name: ubuntu-only-test-with-manual-install

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -21,16 +21,7 @@ jobs:
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
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-latest]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -49,7 +40,7 @@ jobs:
- name: Install miniconda
shell: bash -l {0}
run: |
source setup/setup_conda.sh ${{ matrix.PLATFORM }}
source setup/setup_conda.sh Linux-x86_64
which conda
- name: Check whether the CI environment variable is set
Expand Down

0 comments on commit 565bd70

Please sign in to comment.