Skip to content

Add COMPASS_API_KEY secret to workflow and test in main.py #7

Add COMPASS_API_KEY secret to workflow and test in main.py

Add COMPASS_API_KEY secret to workflow and test in main.py #7

Workflow file for this run

name: simple_test
on:
push:
branches:
- conor/com-6015-run-a-single-workflow-against-staging
workflow_dispatch:
inputs:
environment:
description: "Environment to test"
required: true
type: string
permissions:
id-token: write
contents: write
env:
AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
cd test
uv sync
- name: Run test
env:
COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }}
run: |
cd test
uv run python main.py