Change an error message string to f-string. #1254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |