Skip to content

A few small cleanups to the C++ code #1368

A few small cleanups to the C++ code

A few small cleanups to the C++ code #1368

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/[email protected]
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 ..