-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.19 KB
/
fly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
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 linux_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