Skip to content

Add a notebook for joining results and known objects #1339

Add a notebook for joining results and known objects

Add a notebook for joining results and known objects #1339

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 ..