Skip to content

Tweak Makefile to so that make test TEST="CMD PIGLE" works #62

Tweak Makefile to so that make test TEST="CMD PIGLE" works

Tweak Makefile to so that make test TEST="CMD PIGLE" works #62

Workflow file for this run

name: Format and lint
on:
push:
branches: [ master ]
pull_request:
env:
FORCE_COLOR: 1
jobs:
format:
name: Code format check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
- name: Run formatter
run: |
uv run autoformat.py
f=`git ls-files -m`; if [[ -n $f ]]; then echo -e "ERROR: Detected unformatted files:\n$f"; exit 1; fi
lint:
name: Lint check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Install fortitude linter
run: pip install fortitude-lint==0.7.1
- name: Lint check
run: fortitude check src/
scripts:
name: Test and lint utililities and analysis scripts
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
- name: Run scripts via uv run
run: uv run -p 3.9 utils/analysis/tsh_traj_anal.py -h
- name: Run scripts directly using shebang
run: ./utils/analysis/tsh_traj_anal.py -h
# TODO: Test the script on actual TSH trajectory