Update test.yml
This commit is contained in:
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -19,6 +19,8 @@ jobs:
|
|||||||
POETRY_VERSION: 1.8.1
|
POETRY_VERSION: 1.8.1
|
||||||
DATA_DIR: tests/data
|
DATA_DIR: tests/data
|
||||||
TMPDIR: ~/tmp
|
TMPDIR: ~/tmp
|
||||||
|
TEMP: ~/tmp
|
||||||
|
TMP: ~/tmp
|
||||||
steps:
|
steps:
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# check-out repo and set-up python
|
# check-out repo and set-up python
|
||||||
@@ -27,11 +29,13 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
- name: Set up python
|
- name: Set up python
|
||||||
id: setup-python
|
id: setup-python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# install & configure poetry
|
# install & configure poetry
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@@ -41,6 +45,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ~/.local # the path depends on the OS
|
path: ~/.local # the path depends on the OS
|
||||||
key: poetry-${{ env.POETRY_VERSION }} # increment to reset cache
|
key: poetry-${{ env.POETRY_VERSION }} # increment to reset cache
|
||||||
|
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
if: steps.restore-poetry-cache.outputs.cache-hit != 'true'
|
if: steps.restore-poetry-cache.outputs.cache-hit != 'true'
|
||||||
uses: snok/install-poetry@v1
|
uses: snok/install-poetry@v1
|
||||||
@@ -48,6 +53,7 @@ jobs:
|
|||||||
version: ${{ env.POETRY_VERSION }}
|
version: ${{ env.POETRY_VERSION }}
|
||||||
virtualenvs-create: true
|
virtualenvs-create: true
|
||||||
installer-parallel: true
|
installer-parallel: true
|
||||||
|
|
||||||
- name: Save cached Poetry installation
|
- name: Save cached Poetry installation
|
||||||
if: |
|
if: |
|
||||||
steps.restore-poetry-cache.outputs.cache-hit != 'true' &&
|
steps.restore-poetry-cache.outputs.cache-hit != 'true' &&
|
||||||
@@ -57,8 +63,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ~/.local # the path depends on the OS
|
path: ~/.local # the path depends on the OS
|
||||||
key: poetry-${{ env.POETRY_VERSION }} # increment to reset cache
|
key: poetry-${{ env.POETRY_VERSION }} # increment to reset cache
|
||||||
|
|
||||||
- name: Configure Poetry
|
- name: Configure Poetry
|
||||||
run: poetry config virtualenvs.in-project true
|
run: poetry config virtualenvs.in-project true
|
||||||
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# install dependencies
|
# install dependencies
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@@ -68,11 +76,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.restore-dependencies-cache.outputs.cache-hit != 'true'
|
if: steps.restore-dependencies-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/tmp
|
mkdir ~/tmp
|
||||||
|
echo $TMPDIR
|
||||||
|
echo $TEMP
|
||||||
|
echo $TMP
|
||||||
poetry install --no-interaction --no-root
|
poetry install --no-interaction --no-root
|
||||||
|
|
||||||
- name: Save cached venv
|
- name: Save cached venv
|
||||||
if: |
|
if: |
|
||||||
steps.restore-dependencies-cache.outputs.cache-hit != 'true' &&
|
steps.restore-dependencies-cache.outputs.cache-hit != 'true' &&
|
||||||
@@ -82,11 +95,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# install project
|
# install project
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: poetry install --no-interaction
|
run: poetry install --no-interaction
|
||||||
|
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# run tests
|
# run tests
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
@@ -94,6 +109,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
pytest tests
|
pytest tests
|
||||||
|
|
||||||
- name: Test train pusht end-to-end
|
- name: Test train pusht end-to-end
|
||||||
run: |
|
run: |
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
@@ -107,6 +123,7 @@ jobs:
|
|||||||
save_model=true \
|
save_model=true \
|
||||||
save_freq=1 \
|
save_freq=1 \
|
||||||
hydra.run.dir=tests/outputs/
|
hydra.run.dir=tests/outputs/
|
||||||
|
|
||||||
- name: Test eval pusht end-to-end
|
- name: Test eval pusht end-to-end
|
||||||
run: |
|
run: |
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
|
|||||||
Reference in New Issue
Block a user