Skip to content

Commit

Permalink
update cache to use git repo for rubin-sim
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Nov 26, 2023
1 parent 290e9d5 commit e685ef8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Install conda
uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.11"
auto-update-conda: true
channels: conda-forge,defaults
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
use-mamba: true
channel-priority: strict
show-channel-urls: true
activate-environment: rubin-sim

- name: Install rubin-sim
id: rs-install
- name: Configure conda and install requirements
shell: bash -l {0}
run: |
mamba install --quiet --file=requirements.txt
mamba install --quiet --file=test-requirements.txt
- name: Install rubin_sim from git
shell: bash -l {0}
run: |
mamba install --quiet rubin-scheduler
mamba install --quiet rubin_sim
mamba list rubin-sim | grep -v "#" | awk '{print $2}' > ${{ github.workspace }}/rs_version
echo "rs-version" `cat ${{ github.workspace }}/rs_version`
echo "rs-version=`cat ${{ github.workspace }}/rs_version`" >> $GITHUB_OUTPUT
echo `pwd`
ls ${{ github.workspace }}
python -m pip install . --no-deps
- name: Access rubin-sim-data cache
id: cache-rs
Expand All @@ -51,8 +51,7 @@ jobs:
run: |
export RUBIN_SIM_DATA_DIR=~/rubin_sim_data
scheduler_download_data --tdqm_disable --update
rs_download_data --tdqm_disable
#--update
rs_download_data --tdqm_disable --update
- name: Check data
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Scheduler, survey strategy analysis, and other simulation tools for Rubin Observ
[![pypi](https://img.shields.io/pypi/v/rubin-sim.svg)](https://pypi.org/project/rubin-sim/)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/rubin-sim.svg)](https://anaconda.org/conda-forge/rubin-sim) <br>
[![Run CI](https://github.com/lsst/rubin_sim/actions/workflows/test_and_build.yaml/badge.svg)](https://github.com/lsst/rubin_sim/actions/workflows/test_and_build.yaml)
[![Build and Upload Docs](https://github.com/lsst/rubin_sim/actions/workflows/build_docs.yaml/badge.svg)](https://github.com/lsst/rubin_sim/actions/workflows/build_docs.yaml)
[![codecov](https://codecov.io/gh/lsst/rubin_sim/branch/main/graph/badge.svg?token=2BUBL8R9RH)](https://codecov.io/gh/lsst/rubin_sim)


Expand Down

0 comments on commit e685ef8

Please sign in to comment.