Skip to content

Bump aiohttp from 3.8.4 to 3.8.6 #276

Bump aiohttp from 3.8.4 to 3.8.6

Bump aiohttp from 3.8.4 to 3.8.6 #276

Workflow file for this run

---
name: Build and Test
on: [push, pull_request]
concurrency: production # Make it so this job must complete for deployment to move forward
jobs:
pre-commit:
name: Pre-commit (linting)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/[email protected]
pytest-in-venv:
name: Python tests (in venv)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11.1
cache: "pip"
- name: Install dependencies
run: |
pip install -r requirements-test.txt
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
deploy:
if: github.ref == 'refs/heads/master' # only run deploy on master
name: Deploy to production
runs-on: ubuntu-latest
environment: production
needs: [pre-commit, pytest-in-venv]
steps:
- name: Deploy via ssh
uses: appleboy/[email protected]
with:
script: ~/update_teslabot.bash
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script_stop: true