Debug ci. #86
Workflow file for this run
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: CI Checks | |
on: [pull_request] | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: rcareworld | |
python-version: "3.10" | |
- name: Cache pip packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Cache conda environment | |
uses: actions/cache@v3 | |
with: | |
path: ~/.conda/envs/rcareworld | |
key: ${{ runner.os }}-conda-${{ hashFiles('**/environment.yml') }} | |
restore-keys: | | |
${{ runner.os }}-conda- | |
- run: | | |
cd pyrcareworld | |
conda env update --name rcareworld --file environment.yml || conda env create --name rcareworld --file environment.yml | |
pip install -r requirements.txt | |
pip install -e . | |
# Run each test file individually | |
- name: Run test_angle_functions.py | |
run: | | |
cd pyrcareworld | |
pytest tests/test_angle_functions.py | |
- name: Run test_bathing_env.py | |
run: | | |
cd pyrcareworld | |
pytest tests/test_bathing_env.py | |
- name: Run test_dressing_env.py | |
run: | | |
cd pyrcareworld | |
pytest tests/test_dressing_env.py | |
- name: Run test_save_scene.py | |
run: | | |
cd pyrcareworld | |
pytest tests/test_save_scene.py |