⬆️ Bump actions/upload-artifact from 4.4.3 to 4.5.0 #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Unit and Integration Tests | |
on: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: read # Allow read access to repository contents | |
actions: write # Allow write access to actions to upload artifacts | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.11" | |
- name: Set environment variables | |
run: | | |
{ | |
echo "AZURE_TENANT_ID=dummy_value"; | |
echo "AZURE_CLIENT_ID=dummy_value"; | |
echo "AZURE_CLIENT_SECRET=dummy_value"; | |
echo "LOG_LEVEL=INFO"; | |
} >> "$GITHUB_ENV" | |
- name: Install dependencies | |
run: | | |
set -e # Exit immediately if a command exits with a non-zero status | |
python -m pip install --upgrade pip | |
pip install -r function/requirements.txt | |
pip install -r function/requirements-dev.txt | |
- name: Run unit tests and log output | |
run: | | |
set -e # Ensure the script fails if the tests fail | |
python -m unittest discover -s "function/tests/unit" 2>&1 | tee "unit-test-results.log" | |
continue-on-error: false # Ensure the job fails if the tests do not run | |
- name: Upload unit test logs | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: Unit Test Logs | |
path: "unit-test-results.log" | |
- name: Run integration tests and log output | |
run: | | |
set -e # Ensure the script fails if the tests fail | |
python -m unittest discover -s "function/tests/integration" 2>&1 | tee "integration-test-results.log" | |
continue-on-error: false # Ensure the job fails if the tests do not run | |
- name: Upload integration test logs | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: Integration Test Logs | |
path: "integration-test-results.log" |