Skip to content

Modify filter_observations to accept a path to a parquet file #245

Modify filter_observations to accept a path to a parquet file

Modify filter_observations to accept a path to a parquet file #245

name: conda - Build Lint and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-lint-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Get git tags
run: git fetch --prune --unshallow --tags
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: "thor"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies (excluding adam_core and quivr since they are not available via conda)
run: |
tail +3 requirements.txt > requirements_conda.txt
conda install -c defaults -c conda-forge -c astropy -c moeyensj --file requirements_conda.txt --yes
- name: Update OBSCODE.dat
run: |
cd $CONDA_PREFIX/share/oorb
curl https://www.minorplanetcenter.net/iau/lists/ObsCodes.html -o ObsCodes.html
sed -e '2d' ObsCodes.html | grep -v "<" > OBSCODE.dat
rm -f ObsCodes.html
cp OBSCODE.dat $CONDA_PREFIX/share/openorb/OBSCODE.dat
- name: Install adam_core and quivr
run: |
pip install adam-core@git+https://github.com/B612-Asteroid-Institute/adam_core@main
pip install quivr@git+https://github.com/moeyensj/quivr@concatenate-empty-attributes
- name: Build and install
run: pip install . --no-deps
- name: Lint
run: pre-commit run --all-files
- name: Test
run: pytest . --cov