-
Notifications
You must be signed in to change notification settings - Fork 1.3k
47 lines (43 loc) · 1.17 KB
/
core_code_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 uv
uv pip install --system --upgrade -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 Linter
run: |
ruff check docs/ nerfstudio/ tests/ --output-format=github
- name: Run Ruff Formatter
run: |
ruff format docs/ nerfstudio/ tests/ --diff
- name: Run Pyright
run: |
pyright
- name: Test with pytest
run: |
pytest