Skip to content

event view: set default height after upstream has changed it #316

event view: set default height after upstream has changed it

event view: set default height after upstream has changed it #316

Workflow file for this run

name: CI/CD
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
container: python:3.11-slim-buster
services:
postgres:
image: postgis/postgis:15-3.4
env:
POSTGRES_USER: osmcal
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install other deps
run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libgdal-dev curl
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install deps
run: $HOME/.local/bin/poetry install
- name: Check formatting
run: $HOME/.local/bin/poetry run black --check .
- name: Run tests
run: $HOME/.local/bin/poetry run ./manage.py test
env:
OSMCAL_PG_HOST: postgres
OSMCAL_PG_PASSWORD: postgres
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --detach
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}