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: SearchAPI Test-Staging Integration Deployment and Testing Suite | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| # Deploy Staging | |
| # deploy-edc-test-staging: | |
| # runs-on: ubuntu-latest | |
| # environment: edc-test | |
| # permissions: | |
| # id-token: write | |
| # contents: read | |
| # steps: | |
| # - name: Checkout | |
| # uses: actions/checkout@v4 | |
| # - name: build | |
| # uses: ./.github/workflows/search-api-composite | |
| # with: | |
| # aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }} | |
| # vpc-id: ${{ secrets.VPC_ID }} | |
| # subnet-ids: ${{ secrets.SUBNET_IDS }} | |
| # security-group: ${{ secrets.SECURITY_GROUP }} | |
| # staging: true | |
| # run-edc-test-staging-integration-tests: | |
| # needs: [deploy-edc-test-staging] | |
| # runs-on: ubuntu-latest | |
| # environment: edc-test | |
| # permissions: | |
| # id-token: write | |
| # contents: read | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # - name: Configure AWS OIDC credentials | |
| # uses: aws-actions/configure-aws-credentials@v3 | |
| # with: | |
| # role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/SearchAPIActionsOIDCRole | |
| # aws-region: us-east-1 | |
| # - name: Set up Python | |
| # uses: actions/setup-python@v4 | |
| # with: | |
| # python-version: "3.11" | |
| # - name: Install dependencies | |
| # shell: bash | |
| # run: | | |
| # python -m pip install --upgrade pip | |
| # python -m pip install -r requirements.txt | |
| # python -m pip install -r tests/requirements.txt | |
| # python -m pip install . | |
| # - name: run tests | |
| # shell: bash | |
| # run: | | |
| # pytest tests/integration/test_stack.py \ | |
| # --reruns 3 --reruns-delay 10 | |
| deploy-test-staging: | |
| runs-on: ubuntu-latest | |
| environment: test | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: build | |
| uses: ./.github/workflows/search-api-composite | |
| with: | |
| aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }} | |
| maturity: test-staging | |
| run-test-staging-integration-tests: | |
| needs: [deploy-test-staging] | |
| runs-on: ubuntu-latest | |
| environment: test | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS OIDC credentials | |
| uses: aws-actions/configure-aws-credentials@v3 | |
| with: | |
| role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/SearchAPIActionsOIDCRole | |
| aws-region: us-east-1 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install -r tests/requirements.txt | |
| python -m pip install . | |
| - name: run tests | |
| shell: bash | |
| run: | | |
| pytest tests/integration/test_stack.py \ | |
| --reruns 3 --reruns-delay 10 |