-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||
|