mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 19:33:46 +08:00
31 lines
574 B
YAML
31 lines
574 B
YAML
name: Python application
|
|
|
|
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: Test with pytest
|
|
run: |
|
|
pytest tests
|