Smoke WIP #2
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: Truss CLI E2E tests (chains) | |
on: | |
push: # Remove after testing. | |
workflow_dispatch: | |
inputs: | |
truss_version: | |
description: "The version of Truss to install" | |
required: false | |
jobs: | |
test-chains: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Setup Python | |
uses: ./.github/actions/setup-python/ | |
- name: Poetry Install | |
run: poetry install --with=dev,dev-server --extras=all --no-root | |
- name: Install Truss | |
run: | | |
if [ -z "${{ inputs.truss_version }}" ]; then | |
echo "Error: 'truss_version' is required but not provided." >&2 | |
exit 1 | |
fi | |
python -m venv truss_env | |
truss_env/bin/pip install truss==${{ inputs.truss_version }} | |
- name: Run tests | |
env: | |
TRUSS_ENV_PATH: ${{ github.workspace }}/truss_env | |
run: | | |
BASETEN_API_KEY_STAGING="${{ secrets.BASETEN_API_KEY_STAGING }}" \ | |
poetry run pytest smoketest \ | |
--durations=0 \ | |
-m 'integration' \ | |
--junitxml=report.xml \ | |
-s --log-cli-level=INFO | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
commit: ${{ github.sha }} | |
report_paths: "report.xml" |