Skip to content

Commit

Permalink
Download data for unit tests in pypi test before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Sep 29, 2023
1 parent 00c03d9 commit 1a31e91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,21 @@ 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

- 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
Expand Down

0 comments on commit 1a31e91

Please sign in to comment.