update readme.md #3
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
name: Core Tests. | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8.13 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8.13' | |
- 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 .[dev] | |
- name: Run license checks | |
run: | | |
./nerfstudio/scripts/licensing/license_headers.sh --check | |
- name: Check notebook cell metadata | |
run: | | |
python ./nerfstudio/scripts/docs/add_nb_tags.py --check | |
- name: Run Ruff | |
run: ruff docs/ nerfstudio/ tests/ | |
- name: Run Black | |
run: black docs/ nerfstudio/ tests/ --check | |
- name: Run Pyright | |
run: | | |
pyright | |
- name: Test with pytest | |
run: | | |
pytest |