Skip to content

Commit 7214ec1

Browse files
committed
feat: cli ci test
1 parent ebe2351 commit 7214ec1

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/cli-ci-test.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Integration Test for CLI workflow
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
branches:
9+
- master
10+
paths-ignore:
11+
- "**.md"
12+
- "**.yaml"
13+
- "LICENSE"
14+
- "frontend/**"
15+
- ".github/workflows/frontend-ci-test.yaml"
16+
- ".github/workflows/deploy-gh-pages.yaml"
17+
- ".github/workflows/deploy-gyft-do.yaml"
18+
- "metaploy/**"
19+
- ".gitignore"
20+
- "app.py"
21+
- "wsgi.py"
22+
- ".dockerignore"
23+
- "Dofkerfile"
24+
- "Dofkerfile-dev"
25+
26+
jobs:
27+
cli-ci:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
34+
- name: Set up Python 3.13
35+
uses: actions/setup-python@v4
36+
with:
37+
python-version: '3.13'
38+
39+
- name: Install dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install -r requirements.txt
43+
44+
- name: Setup env
45+
env:
46+
ERPCREDS : ${{ secrets.ERPCREDS }}
47+
TOKEN_JSON : ${{ secrets.TOKEN_JSON }}
48+
CREDENTIALS_JSON : ${{ secrets.CREDENTIALS_JSON }}
49+
run: |
50+
cat "$ERPCREDS" > erpcreds.py
51+
cat "$TOKEN_JSON" > token.json
52+
cat "$CREDENTIALS_JSON" > credentials.json
53+
54+
- name: Run the project
55+
run: python gyft.py -D

0 commit comments

Comments
 (0)