Skip to content

Commit

Permalink
Update OBSCODE.dat in GitHub workflows and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
moeyensj committed Oct 19, 2023
1 parent 75d1b27 commit ff0ce2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/conda-build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
run: |
tail +2 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 && ./updateOBSCODE
cp OBSCODE.dat $CONDA_PREFIX/share/openorb/OBSCODE.dat
- name: Install adam_core
run: |
pip install adam-core@git+https://github.com/B612-Asteroid-Institute/adam_core@main
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pip-build-lint-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install openorb using conda
run: conda install -c defaults -c conda-forge openorb --yes
- name: Update OBSCODE.dat
run: |
cd $CONDA_PREFIX/share/oorb && ./updateOBSCODE
cp OBSCODE.dat $CONDA_PREFIX/share/openorb/OBSCODE.dat
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ RUN pip install --upgrade pip pre-commit
RUN conda install -c defaults -c conda-forge openorb --y
ENV OORB_DATA /opt/conda/share/openorb

# Update OBSCODE.dat
RUN cd $CONDA_PREFIX/share/oorb \
&& ./updateOBSCODE
RUN cp OBSCODE.dat $CONDA_PREFIX/share/openorb/OBSCODE.dat

# Install pre-commit hooks (before THOR is installed to cache this step)
RUN mkdir /code/
COPY .pre-commit-config.yaml /code/
Expand Down

0 comments on commit ff0ce2f

Please sign in to comment.