From 27316d48f9e873274b5815ea7a921233c025a786 Mon Sep 17 00:00:00 2001 From: Tom Silver Date: Sat, 17 Aug 2024 12:27:46 -0400 Subject: [PATCH] try github actions --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..ed2f3204 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +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