Skip to content

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8.1 #1963

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8.1

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8.1 #1963

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: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: poetry
python-version: 3.8
- 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@v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
deploy:
runs-on: ubuntu-latest
environment: release
if: github.ref == 'refs/heads/main'
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
cache: poetry
python-version: 3.8
- 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@v4
- run: yarn
- run: yarn deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}