Skip to content

Commit 14a5f95

Browse files
committed
adding ci yml to repository
1 parent 63e9150 commit 14a5f95

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name : CI Example voting app
2+
on:
3+
push :
4+
branches : [ "main" ]
5+
pull_request :
6+
branches : [ "main" ]
7+
8+
jobs:
9+
build-and-test:
10+
runs-on : ubuntu-latest
11+
12+
steps :
13+
- name: checkout-repositories
14+
uses: action/checkout@v3
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies (vote)
22+
working-directory: vote
23+
run: npm install
24+
25+
- name: Run tests (vote)
26+
working-directory: vote
27+
run: npm test --if-present
28+
29+
# Test Python worker
30+
- name: Setup Python
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: '3.10'
34+
35+
- name: Install Python deps (worker)
36+
working-directory: worker
37+
run: pip install -r requirements.txt
38+
39+
- name: Run Python tests (worker)
40+
working-directory: worker
41+
run: pytest || echo "No tests found"

0 commit comments

Comments
 (0)