Skip to content

feat: add testing framework #6

feat: add testing framework

feat: add testing framework #6

Workflow file for this run

name: Deploy template
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install divio-cli
- name: Deploy to Divio
run: |
divio login ${{ secrets.DIVIO_TOKEN }}
divio app deploy test --remote-id ${{ secrets.DIVIO_WEBSITE_ID }}
- name: Test if website is reachable
run: |
curl -v -s --retry 10 --retry-connrefused ${{ secrets.WEBSITE_URL }}