-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.08 KB
/
cli.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: CLI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
commands:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install data7
run: pip install .
- name: Init data7 project
run: |
mkdir /tmp/data7
cd /tmp/data7
data7 init
- name: Download test database
working-directory: /tmp/data7
run: |
mkdir db
curl -Ls -o db/development.db \
https://github.com/lerocha/chinook-database/releases/download/v1.4.5/Chinook_Sqlite.sqlite
- name: Check configuration
working-directory: /tmp/data7
env:
ENV_FOR_DYNACONF: development
run: data7 check
- name: Run the server
working-directory: /tmp/data7
env:
ENV_FOR_DYNACONF: development
run: timeout --preserve-status 5 data7 run --reload