Skip to content

Automated API test that runs against Thermia API and checks for breaking changes #80

Automated API test that runs against Thermia API and checks for breaking changes

Automated API test that runs against Thermia API and checks for breaking changes #80

name: Automated API test that runs against Thermia API and checks for breaking changes
on:
schedule:
# run every six hours
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
test_api:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.x"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U -r requirements.txt
pip install -U ThermiaOnlineAPI
- name: Create .env file
run: |
touch .env
echo "USERNAME=${{ secrets.THERMIA_USERNAME }}" >> .env
echo "PASSWORD=${{ secrets.THERMIA_PASSWORD }}" >> .env
- name: Run tests against Thermia API
run: |
python scripts/test_api.py