Skip to content

Add missing migration #76

Add missing migration

Add missing migration #76

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
DATABASE_URL: sqlite://
SECRET_KEY: something_very_secret
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "latest"
- name: Install dependencies
run: uv sync --locked
- name: Collect static
run: uv run python manage.py collectstatic --no-input
- name: Run Tests
run: uv run pytest
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
bash projects/surfcams/.deploy/update.sh