Skip to content

Merge pull request #746 from dirac-institute/known_obj_notebook #1341

Merge pull request #746 from dirac-institute/known_obj_notebook

Merge pull request #746 from dirac-institute/known_obj_notebook #1341

Workflow file for this run

name: PR tests
on:
pull_request:
branches:
- main
tags:
- "*"
push:
branches:
- main
tags:
- "*"
env:
CONDA: /local/tmp/kbmod-runner/miniconda3
jobs:
test-fiducial:
name: Testing in kbmod_ci env.
runs-on: self-hosted
strategy:
fail-fast: true
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- name: Setup environment
run: echo "/usr/local/cuda-12/bin" > $GITHUB_PATH
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
with:
activate-environment: kbmod_ci_clone
- name: Clone existing environment
run: |
conda deactivate
conda create --name kbmod_ci_clone --clone kbmod_ci
conda activate kbmod_ci_clone
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
# Run linters before attempting to compile and install
# the package, faster fails.
- name: Linter
uses: psf/black@stable
with:
jupyter: true
- name: Build KBMOD
run: |
python -m pip install .
- name: Run tests
run: |
cd tests
python -m unittest -b
cd ..