Skip to content

Bump aiohttp from 3.10.5 to 3.11.6 #2666

Bump aiohttp from 3.10.5 to 3.11.6

Bump aiohttp from 3.10.5 to 3.11.6 #2666

Workflow file for this run

name: Test and Deploy
on: [ push, pull_request ]
env:
SECRET_KEY: "FAKE_SECRET_KEY"
DATABASE_URL: ${{secrets.DATABASE_URL}}
REDIS_URL: ${{secrets.REDIS_URL}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
STRIPE_PUBLISHABLE_KEY: ${{secrets.STRIPE_PUBLISHABLE_KEY}}
STRIPE_SECRET_KEY: ${{secrets.STRIPE_SECRET_KEY}}
STRIPE_PRICE_ID: ${{secrets.STRIPE_PRICE_ID}}
STRIPE_ENDPOINT_SECRET: ${{secrets.STRIPE_ENDPOINT_SECRET}}
GOOGLE_MAPS_API_KEY: ${{secrets.GOOGLE_MAPS_API_KEY}}
MAPBOX_API_KEY: ${{secrets.MAPBOX_API_KEY}}
OPENAI_KEY: ${{secrets.OPENAI_KEY}}
jobs:
test:
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres
env:
POSTGRES_DB: teambio
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12.2
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: Collect Static
run: |
python manage.py collectstatic --no-input
- name: Run Tests
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/teambio
REDIS_URL: redis://redis:6379
run: |
coverage run --source='.' manage.py test --no-input
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
deploy-caprover:
runs-on: ubuntu-latest
needs: [test]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: a7ul/tar-action@v1.1.0
with:
command: c
cwd: "./"
files: |
.
outPath: deploy.tar
- name: Deploy web app
uses: caprover/deploy-from-github@v1.0.1
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.CAPROVER_WEB_APP_NAME }}'
token: '${{ secrets.CAPROVER_WEB_APP_TOKEN }}'
- name: Deploy celery app
uses: caprover/deploy-from-github@v1.0.1
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.CAPROVER_CELERY_APP_NAME }}'
token: '${{ secrets.CAPROVER_CELERY_APP_TOKEN }}'