Skip to content

Merge branch 'main' of github.com:daya0576/beaver_habits #31

Merge branch 'main' of github.com:daya0576/beaver_habits

Merge branch 'main' of github.com:daya0576/beaver_habits #31

Workflow file for this run

name: Fly Deploy
on:
push:
branches:
- main
jobs:
pre-deploy-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-interaction --no-ansi
- name: Test with pytest
run: poetry run pytest tests
deploy:
name: Deploy app
runs-on: ubuntu-latest
needs: pre-deploy-test
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}