From e685ef8b89884454af73c871086314ede5937c96 Mon Sep 17 00:00:00 2001 From: Lynne Jones Date: Sat, 25 Nov 2023 19:30:49 -0800 Subject: [PATCH] update cache to use git repo for rubin-sim --- .github/workflows/cache.yaml | 29 ++++++++++++++--------------- README.md | 1 + 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index b26caed89..cf495dbc7 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -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 @@ -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} diff --git a/README.md b/README.md index e32ebd812..dda020531 100644 --- a/README.md +++ b/README.md @@ -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)
[![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)