Skip to content

chore(deps): upgrade dependencies (#581) #1275

chore(deps): upgrade dependencies (#581)

chore(deps): upgrade dependencies (#581) #1275

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: snok/install-poetry@v1.3.4
- name: Install Dependencies
run: poetry install
- name: Test with Pytest
run: poetry run pytest --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v3.1.4
deploy:
runs-on: ubuntu-latest
environment: release
if: github.ref == 'refs/heads/main'
needs:
- test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: snok/install-poetry@v1.3.4
- name: Write .env file
run: |
echo "SLACK_API_TOKEN=${{ secrets.SLACK_API_TOKEN }}
SLACK_CHANNEL='${{ secrets.SLACK_CHANNEL }}'
FACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }}
FACEBOOK_APP_SECRET=${{ secrets.FACEBOOK_APP_SECRET }}
DOMAINS_LIST=${{ secrets.DOMAINS_LIST }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}" > .env
- uses: actions/setup-node@v3
- run: yarn
- run: yarn deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}