4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00
nerfstudio/.github/workflows/core_code_checks.yml
Ethan Weber c46ff4f75f
torch==1.12 and requirements.txt update (#302)
* cleaning up requirements.txt and adding versions

* need to update github actions, docs, and make optional dependencies work

* updated documentation

* set directory

* new functorch version

* updated caching

* fixed hash
2022-09-02 10:25:37 -07:00

45 lines
1.2 KiB
YAML

name: Core 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('pyproject.toml') }}
- name: Install dependencies
run: |
pip install --upgrade --upgrade-strategy eager -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