From e1509a4b638551d6a9d053b4b07a24722a72da0b Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 9 Mar 2024 16:59:33 -0500 Subject: [PATCH] remove log publishing --- .github/actions/publish-test-logs/action.yml | 42 -------------------- .github/workflows/unit-tests.yml | 8 ---- 2 files changed, 50 deletions(-) delete mode 100644 .github/actions/publish-test-logs/action.yml diff --git a/.github/actions/publish-test-logs/action.yml b/.github/actions/publish-test-logs/action.yml deleted file mode 100644 index 7b0916d8..00000000 --- a/.github/actions/publish-test-logs/action.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: "Publish test logs" -description: "Upload test logs to a unique archive name" - -inputs: - archive-type: - description: "File type for archive name stub (e.g. unit-tests)" - required: true - python-version: - description: "Python version for the archive name stub (e.g. 3.8)" - required: true - os: - description: "OS for the archive name stub (e.g. ubuntu-latest)" - required: true - -outputs: - archive-name: - description: "Name of the archive containing the test artifacts" - value: ${{ steps.archive.outputs.archive-name }} - -runs: - using: composite - steps: - - name: "Create unique archive name" - id: archive - shell: bash - run: | - timestamp=$(date +'%Y-%m-%dT%H-%M-%S') - archive_name="${{ inputs.archive-type }}_python-${{ inputs.python-version }}_${{ inputs.os }}_$timestamp" - echo "archive-name=$archive_name" >> $GITHUB_OUTPUT - - - name: "Upload test logs" - uses: actions/upload-artifact@v4 - with: - name: ${{ steps.archive.outputs.archive-name }} - path: ./logs - - - name: "[INFO] Uploaded test logs" - shell: bash - run: | - title="Uploaded test logs" - message="Uploaded `./logs` to ${{ steps.archive.outputs.archive-name }}" - echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 6520a894..6ff00368 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -58,11 +58,3 @@ jobs: - name: "Run unit tests" run: hatch run unit-tests:all shell: bash - - - name: "Publish test logs" - uses: ./.github/actions/publish-test-logs - if: ${{ contains(github.event_name, 'workflow_') }} - with: - archive-type: "unit-test" - python-version: ${{ matrix.python-version }} - os: ${{ matrix.os }}