mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
Cache envs for faster github actions (#291)
* Cache pip for faster actions * Add caching to viewer * Fix Path * typo * try path again * Fancier caching
This commit is contained in:
1 parent
7523e2dd6d
commit
68f4370133
2 files changed
+9
-6
No files matched your search
@@ -16,14 +16,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.8.12
|
- name: Set up Python 3.8.12
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8.12'
|
python-version: '3.8.12'
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ env.pythonLocation }}
|
||||||
|
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
pip install --upgrade --upgrade-strategy eager -r environment/requirements.txt -e .
|
||||||
pip install -r environment/requirements.txt
|
|
||||||
pip install -e .
|
|
||||||
- name: Run license checks
|
- name: Run license checks
|
||||||
run: |
|
run: |
|
||||||
./scripts/licensing/license_headers.sh --check
|
./scripts/licensing/license_headers.sh --check
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 17.8.0
|
node-version: 17.8.0
|
||||||
# cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
cache-dependency-path: ./nerfactory/viewer/app/yarn.lock
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: yarn install
|
run: yarn install
|
||||||
@@ -71,4 +72,4 @@ jobs:
|
|||||||
- run: ssh github_action_remote_machine 'rm -rf /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
|
- run: ssh github_action_remote_machine 'rm -rf /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
|
||||||
- run: scp -r ./nerfactory/viewer/app/build github_action_remote_machine:/home/eweb0124/
|
- run: scp -r ./nerfactory/viewer/app/build github_action_remote_machine:/home/eweb0124/
|
||||||
# TODO(ethan): move the current version to an older folder
|
# TODO(ethan): move the current version to an older folder
|
||||||
- run: ssh github_action_remote_machine 'mv /home/eweb0124/build /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
|
- run: ssh github_action_remote_machine 'mv /home/eweb0124/build /home/eweb0124/viewer/branch/${{ env.BRANCH_NAME }}'
|
||||||
Reference in new issue
Block a user