Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
psetinek authored Sep 22, 2023
1 parent 888407e commit a03bf02
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: run-tests
on:
push:

jobs:
run-tests:
runs-on: ubuntu-latest
steps:

# checkout nerfstudio
- uses: actions/checkout@v3
with:
repository: 'acse-pms122/nerfstudio_dev'
path: nerfstudio_dev

- uses: actions/setup-python@v4
with:
python-version: '3.8'

# load cached env (otherwise nerfstudio can take quite long to install)
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
working-directory: ./nerfstudio_dev
run: |
pip install -e .
pip install pytest
# checkout seathru-nerf (this repo)
- uses: actions/checkout@v3
with:
path: irp-pms122

- name: Install seathru
working-directory: ./irp-pms122
run: |
pip install -e .
# Run tests
- name: run tests
working-directory: ./irp-pms122
run: pytest ./tests

0 comments on commit a03bf02

Please sign in to comment.