fix(scheduler): resolve update domain availability #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scheduler PR | |
on: | |
pull_request: | |
paths: | |
- "scheduler/**" | |
env: | |
DEBUG: true | |
jobs: | |
linter: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install Deps | |
run: | | |
pip install -U pip | |
pip install poetry | |
poetry install | |
working-directory: scheduler_py | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run Black checks | |
run: poetry run black --check . | |
working-directory: scheduler | |
- name: Run Flake8 checks | |
run: poetry run flake8 --count . | |
working-directory: scheduler_py | |
data-migration: | |
name: Run Data Migrations | |
runs-on: ubuntu-latest | |
services: | |
api-db: | |
image: postgres:alpine3.16 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: pipe_test | |
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.10" | |
- name: Execute alembic migrations | |
run: | | |
pip install -U pip | |
pip install poetry | |
poetry install | |
poetry run alembic upgrade head | |
working-directory: api | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
TEST_DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/pipe_test" | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
services: | |
api-db: | |
image: postgres:alpine3.16 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: pipe_test | |
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 Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20.x" | |
- name: Install Dependencies | |
run: | | |
yarn install | |
- name: Run Tests | |
run: yarn test | |
working-directory: scheduler |