-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12384fa
commit e1ec2af
Showing
2 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Fly Deploy | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
env: | ||
STREAMLIT_SERVER_PORT: 8080 | ||
STREAMLIT_SERVER_COOKIE_SECRET: 00000000-0000-0000-0000-000000000000 | ||
OPENAI_API_KEY: nnn | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Restore asdf cache | ||
id: asdf-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.asdf | ||
key: ${{ runner.os }}-asdf-${{ hashFiles('.tool-versions') }} | ||
- name: Install asdf | ||
uses: asdf-vm/actions/install@v3 | ||
- name: Restore poetry cache | ||
id: poetry-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pypoetry | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('pyproject.toml') }} | ||
- name: Install Dependencies | ||
run: make deps | ||
- name: Run Linter | ||
run: make lint | ||
- name: Run Tests | ||
run: make test_once | ||
deploy: | ||
name: Deploy to fly.io | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: superfly/flyctl-actions/setup-flyctl@master | ||
- run: flyctl deploy --remote-only |
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