mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 11:54:01 +08:00
Reformat missing files
This commit is contained in:
1 parent
4485a00e2a
commit
0061b59b79
4 files changed
+11
-42
No files matched your search
@@ -0,0 +1,38 @@
|
||||
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@v3
|
||||
with:
|
||||
python-version: "3.8.12"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r environment/requirements.txt
|
||||
python setup.py develop
|
||||
- name: Run Black
|
||||
uses: psf/black@stable
|
||||
with:
|
||||
options: "--check --verbose --line-length=120"
|
||||
- name: Python Pylint GitHub Action
|
||||
uses: vcoder4c/git_pylint@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest tests
|
||||
Reference in new issue
Block a user