[Do not merge] Testing continuous intergration with GitHub Actions #1
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: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
conda create -n rcareworld python=3.10 | |
conda activate rcareworld | |
cd RCareWorld/pyrcareworld | |
pip install -r requirements.txt | |
pip install -e . | |
pip uninstall numpy | |
conda install numpy | |
- name: Verify that installation works | |
run: | | |
cd RCareWorld/template | |
python test_bathing.py |