Update README.md #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run All of the Tests | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
AllTests: | |
name: Run All Tests (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: True | |
matrix: | |
os: ["ubuntu-latest-8-cores"] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge,defaults | |
miniforge-variant: Mambaforge | |
use-mamba: true | |
channel-priority: strict | |
show-channel-urls: true | |
- name: configure conda and install requirements | |
shell: bash -l {0} | |
run: | | |
mamba config --set always_yes yes | |
mamba install --quiet --file=requirements.txt | |
mamba install --quiet --file=test-requirements.txt | |
- name: install rubin_sim | |
shell: bash -l {0} | |
run: | | |
echo `pwd` | |
ls ${{ github.workspace }} | |
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 --force --tdqm_disable | |
- name: conda list | |
shell: bash -l {0} | |
run: conda list | |
- name: run 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 | |
uses: codecov/codecov-action@v2 | |
with: | |
file: coverage.xml |