Skip to content

Update notification type for new likes #233

Update notification type for new likes

Update notification type for new likes #233

Workflow file for this run

name: Testing identity_socializer
on: push
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install deps
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run black check
run: poetry run black --check .
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install deps
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run flake8 check
run: poetry run flake8 --count .
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install deps
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run mypy check
run: poetry run mypy .
pytest:
runs-on: ubuntu-latest
services:
identity_socializer-db:
image: postgres:13.8-bullseye
env:
POSTGRES_PASSWORD: identity_socializer
POSTGRES_USER: identity_socializer
POSTGRES_DB: identity_socializer
options: >-
--health-cmd="pg_isready"
--health-interval=10s
--health-timeout=5s
--health-retries=5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install deps
uses: knowsuchagency/poetry-install@v1
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Firebase credentials for testing
run: echo "$FIREBASE_CREDENTIALS" > firebase_credentials.json
shell: bash
env:
FIREBASE_CREDENTIALS: ${{secrets.FIREBASE_CREDENTIALS}}
- name: Run pytest check
run: poetry run pytest -vv --cov="identity_socializer" --cov-config .coveragerc .
env:
IDENTITY_SOCIALIZER_HOST: "0.0.0.0"
IDENTITY_SOCIALIZER_DB_HOST: localhost
devflow:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@master
- uses: okteto/context@latest
with:
token: ${{ secrets.OKTETO_TOKEN }}
- name: "Create deployment"
uses: luiscusihuaman/okteto-deploy@main
with:
file: okteto.yml
build: "true"