Skip to content

Draft PR For Distance Confusion Matrices #217

Draft PR For Distance Confusion Matrices

Draft PR For Distance Confusion Matrices #217

name: osx-ubuntu-manual-install

Check failure on line 1 in .github/workflows/osx-ubuntu-manual-install.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/osx-ubuntu-manual-install.yml

Invalid workflow file

Invalid type for `job.strategy`
# 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:
env:
EXP_CONDA_VER: 23.1.0
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: macos-latest
PLATFORM: MacOSX-x86_64
SOURCE_SCRIPT: /Users/runner/miniconda-23.1.0/etc/profile.d/conda.sh
PLATFORM: Linux-x86_64
SOURCE_SCRIPT: /home/runner/miniconda-23.1.0/etc/profile.d/conda.sh
# 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: Install miniconda
shell: bash -l {0}
run: |
source setup/setup_conda.sh $EXP_CONDA_VER ${{ matrix.PLATFORM }}
if [ ${{ matrix.PLATFORM }} == "Linux-x86_64" ]; then
echo "Linux install, going to check conda path"
which conda
else
echo "OSX install, skipping conda path check"
echo " since 'which conda' inexplicably returns with status code 1"
echo " only in the CI environment"
fi
- name: Check whether the CI environment variable is set
shell: bash -l {0}
run: |
source ${{ matrix.SOURCE_SCRIPT }}
echo $CI
- name: Setup the emissioneval environment
shell: bash -l {0}
run: |
conda --version
which conda
source ${{ matrix.SOURCE_SCRIPT }}
conda --version
source setup/setup.sh
echo "About to activate environment"
conda activate emissioneval
conda env list
- name: Teardown the emissioneval environment
shell: bash -l {0}
run: |
source ${{ matrix.SOURCE_SCRIPT }}
source setup/teardown.sh
- name: Teardown the miniconda install
shell: bash -l {0}
run: |
source setup/teardown_conda.sh $EXP_CONDA_VER