diff --git a/.github/workflows/build_pypi.yml b/.github/workflows/build_pypi.yml index 73b878982..a2c2f29a8 100644 --- a/.github/workflows/build_pypi.yml +++ b/.github/workflows/build_pypi.yml @@ -41,6 +41,13 @@ jobs: echo `pwd` python -m pip install . + - name: download rubin_sim_data components needed for unit tests + shell: bash -l {0} + run: | + export RUBIN_SIM_DATA_DIR=${{ github.workspace }}/data_dir + rs_download_data --tdqm_disable -d 'site_models,throughputs,skybrightness,skybrightness_pre' + rs_download_data --tdqm_disable -d tests --force + - name: conda list shell: bash -l {0} run: conda list @@ -48,6 +55,7 @@ jobs: - name: run unit tests shell: bash -l {0} run: | + export RUBIN_SIM_DATA_DIR=${{ github.workspace }}/data_dir pytest -r a -v --cov=rubin_sim --cov=tests --cov-report=xml --cov-report=term --cov-branch - name: Upload coverage to codecov