Skip to content

Merge pull request #103 from padraic-shafer/master #75

Merge pull request #103 from padraic-shafer/master

Merge pull request #103 from padraic-shafer/master #75

Workflow file for this run

name: CI
# 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 ]
# 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: [self-hosted, linux, gpu]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Chekout
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
with:
submodules: true
# a personal access token is added as a secret to this repo
token: ${{ secrets.GH_ACTIONS_TOKEN }}
# Runs a single command using the runners shell
- name: Ensure the right machine
run: hostname
# Runs a set of commands using the runners shell
- name: Test Conda environment
run: |
conda create -n _github_runner -c conda-forge -y python=3.7 \
pyfftw pyqt=5 numpy scipy matplotlib pillow h5py posix_ipc databroker openmpi mpi4py numba
source $HOME/miniconda3/bin/activate _github_runner
conda list
python --version
pip install -v .
conda deactivate
conda env remove -n _github_runner