Add COMPASS_API_KEY secret to workflow and test in main.py #7
This file contains hidden or 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: 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 | |