4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00
nerfstudio/.github/workflows/pytest.yml
2022-04-09 05:54:38 +00:00

32 lines
672 B
YAML

name: Python application
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f environment/requirements.txt ]; then pip install -r environment/requirements.txt; fi
python setup.py develop
- name: Test with pytest
run: |
pytest tests/nerf/test_graph.py