mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
* starting docs for pipelines * working on an example * clearing output * starting to implement config changes and add documentation * wip: removed cicular imports; porting basic config into python; todo: get python setups workin * circular imports again * wip: pausing at dataloader sort of working * break for today * running vanilla * wip need to get all the config docs working * laptop about to die * instant ngp working * added all configs for all methods; not tested yet: [mipnerf360, nerfw, semantic_nerf] * unpacking later * done with pylinting * mostly done. just need to do docs and one test * added import order to docs * fixing near/far plane and other config things * making loggers also instantiable via configs * docs * lint * making --help work with dcargs * moving configs back into flat * convert list to tuples; fixed post init function with mutable params * lint * made run_eval and benchmarking scripts compatible with new config/dcargs * lint * added option to load configs from presaved config Co-authored-by: evonneng <evonne_ng@berkeley.edu>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: Check code for formating and run tests.
|
|
|
|
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.8.12
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.8.12'
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ${{ env.pythonLocation }}
|
|
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install --upgrade --upgrade-strategy eager -r environment/requirements.txt -e .
|
|
- name: Run license checks
|
|
run: |
|
|
./scripts/licensing/license_headers.sh --check
|
|
- name: Check notebook cell metadata
|
|
run: |
|
|
python ./scripts/docs/add_nb_tags.py --check
|
|
- name: Run isort
|
|
run: isort docs/ nerfactory/ scripts/ tests/ --profile black --check
|
|
- name: Run Black
|
|
run: black docs/ nerfactory/ scripts/ tests/ --check
|
|
- name: Python Pylint
|
|
run: |
|
|
pylint --disable=cyclic-import nerfactory tests scripts
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest
|