File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments