diff --git a/tasks/pytest/task.yaml b/tasks/pytest/task.yaml index 25a8229..efdfc20 100644 --- a/tasks/pytest/task.yaml +++ b/tasks/pytest/task.yaml @@ -16,26 +16,25 @@ spec: - name: source description: Workspace containing the cloned Git repository from git-clone-checkout steps: - - name: debug-workspace - image: ubuntu - workingDir: /workspace/source - script: | - #!/usr/bin/env bash - if [ -n "$(params.subdirectory)" ]; then - if [ -d "$(params.subdirectory)" ]; then - echo "Subdirectory $(params.subdirectory) exists:" - ls -la $(params.subdirectory) - else - echo "Subdirectory $(params.subdirectory) not found!" - exit 1 - fi - fi + # - name: debug-workspace + # image: ubuntu + # workingDir: /workspace/source + # script: | + # #!/usr/bin/env bash + # if [ -n "$(params.subdirectory)" ]; then + # if [ -d "$(params.subdirectory)" ]; then + # echo "Subdirectory $(params.subdirectory) exists:" + # ls -la $(params.subdirectory) + # else + # echo "Subdirectory $(params.subdirectory) not found!" + # exit 1 + # fi + # fi - name: install-dependencies image: python:$(params.python-version)-slim workingDir: /workspace/source script: | #!/usr/bin/env bash - ls -la /workspace/source if [ -n "$(params.subdirectory)" ]; then cd $(params.subdirectory) fi @@ -44,6 +43,7 @@ spec: if [ -f pyproject.toml ]; then pip install poetry poetry config virtualenvs.in-project true + poetry lock --no-cache --regenerate poetry install --no-root elif [ -f requirements.txt ]; then pip install -r requirements.txt