Merge pull request #2025 from britneywwc/fix-maas-form #89
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: Form e2e integration tests on canonical.com | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "templates/**" | |
| schedule: | |
| - cron: "20 7 * * *" | |
| env: | |
| SECRET_KEY: insecure_test_key # used to configure our Flask base app | |
| jobs: | |
| test-marketo-form-generator: | |
| if: github.repository == 'canonical/canonical.com' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run Marketo tests | |
| env: | |
| MARKETO_API_URL: "https://066-EOV-335.mktorest.com" | |
| MARKETO_API_CLIENT: ${{ secrets.MARKETO_API_CLIENT }} | |
| MARKETO_API_SECRET: ${{ secrets.MARKETO_API_SECRET }} | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:$(pwd) | |
| python3 -m unittest tests.test_marketo | |
| - name: Send message on failure | |
| if: failure() | |
| run: curl -X POST -F "workflow=${GITHUB_WORKFLOW}" -F "repo_name=${GITHUB_REPOSITORY}" -F "action_id=${GITHUB_RUN_ID}" ${{ secrets.BOT_URL }}?room=webge-forms |