32 lines
791 B
YAML
32 lines
791 B
YAML
name: Test WaylonWalker.com
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
schedule:
|
|
- cron: '* */6 * * *'
|
|
|
|
jobs:
|
|
test-site:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.8'
|
|
- run: pip install -r requirements.txt
|
|
- name: Run TestProject Agent
|
|
env:
|
|
TP_API_KEY: ${{ secrets.TP_API_KEY }}
|
|
run: |
|
|
envsubst < .github/ci/docker-compose.yml > docker-compose.yml
|
|
docker-compose -f docker-compose.yml up -d
|
|
- name: Wait for Agent to Register
|
|
run: bash .github/ci/wait_for_agent.sh
|
|
- run: pytest
|
|
env:
|
|
TP_DEV_TOKEN: ${{ secrets.TP_DEV_TOKEN }}
|
|
TP_AGENT_URL: http://localhost:8585
|