From e5775dd68ebc1c7c41f9f60c5e8a4a064eafbeff Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 16 Jun 2024 16:09:37 +0200 Subject: [PATCH] WIP --- .../test-stack-reusable-workflow.yml | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-stack-reusable-workflow.yml b/.github/workflows/test-stack-reusable-workflow.yml index 06ebff66..8371a83f 100644 --- a/.github/workflows/test-stack-reusable-workflow.yml +++ b/.github/workflows/test-stack-reusable-workflow.yml @@ -12,14 +12,16 @@ on: jobs: test-application: runs-on: ubuntu-latest + env: + PYTHON_VERSION: ${{ inputs.python-version }} steps: - uses: actions/checkout@v4 # Mainly just for link/flake8 - - name: Set up Python ${{ inputs.PYTHON_VERSION }} + - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v5 with: - python-version: ${{ inputs.PYTHON_VERSION }} + python-version: ${{ env.PYTHON_VERSION }} - name: Spin up ancillary testable services run: | @@ -35,13 +37,11 @@ jobs: - name: Build changedetection.io container for testing run: | - echo "---- Building for Python ${{ inputs.PYTHON_VERSION }} -----" + echo "---- Building for Python ${{ env.PYTHON_VERSION }} -----" # Build a changedetection.io container and start testing inside - docker build --build-arg PYTHON_VERSION=${{ inputs.PYTHON_VERSION }} --build-arg LOGGER_LEVEL=TRACE -t test-changedetectionio . + docker build --build-arg PYTHON_VERSION=${{ env.PYTHON_VERSION }} --build-arg LOGGER_LEVEL=TRACE -t test-changedetectionio . # Debug info docker run test-changedetectionio bash -c 'pip list' - with: - python-version: ${{ inputs.python-version }} - name: Spin up ancillary SMTP+Echo message test server run: | @@ -214,15 +214,12 @@ jobs: if: always() run: | mkdir output-logs - docker logs test-cdio-basic-tests > output-logs/test-cdio-basic-tests-stdout-${{ inputs.PYTHON_VERSION }}.txt - docker logs test-cdio-basic-tests 2> output-logs/test-cdio-basic-tests-stderr-${{ inputs.PYTHON_VERSION }}.txt - with: - python-version: ${{ inputs.python-version }} + docker logs test-cdio-basic-tests > output-logs/test-cdio-basic-tests-stdout-${{ env.PYTHON_VERSION }}.txt + docker logs test-cdio-basic-tests 2> output-logs/test-cdio-basic-tests-stderr-${{ env.PYTHON_VERSION }}.txt - name: Store container log if: always() uses: actions/upload-artifact@v4 with: - name: test-cdio-basic-tests-output-py${{ inputs.PYTHON_VERSION }} + name: test-cdio-basic-tests-output-py${{ env.PYTHON_VERSION }} path: output-logs - python-version: ${{ inputs.python-version }} \ No newline at end of file