Skip to content

debug: maybe commands #30

debug: maybe commands

debug: maybe commands #30

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: Run pytest check
run: poetry run pytest -vv --cov="identity_socializer" .
env:
IDENTITY_SOCIALIZER_HOST: "0.0.0.0"
IDENTITY_SOCIALIZER_DB_HOST: localhost
okteto-deploy:
runs-on: ubuntu-latest
container:
image: okteto/okteto:latest
volumes:
- ${{ github.workspace }}:/usr/src/app
options: -w /usr/src/app
steps:
- run: okteto context use --token=${{ secrets.OKTETO_TOKEN }}
- run: ls -l && pwd
- run: okteto deploy -f okteto.yml