File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Backend CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ jobs :
10
+ build-and-test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Set up Python 3.11
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : ' 3.11'
20
+
21
+ - name : Install Dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ pip install -r src/dashboard_api/requirements.txt
25
+ - name : Run Tests with Pytest
26
+ run : |
27
+ pytest src/tests/
28
+ - name : Build API Docker Image
29
+ run : |
30
+ docker build --file src/dashboard_api/Dockerfile . --tag dynamic-pricing-api:latest
31
+ - name : Build UI Docker Image
32
+ run : |
33
+ docker build --file ui/Dockerfile ./ui --tag dynamic-pricing-ui:latest
You can’t perform that action at this time.
0 commit comments