-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (61 loc) · 1.93 KB
/
ci.yml
File metadata and controls
68 lines (61 loc) · 1.93 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
# ============================================================
# Load Configuration
# ============================================================
load-config:
uses: ./.github/workflows/_config.yml
# ============================================================
# Test Job
# ============================================================
test:
needs: load-config
if: needs.load-config.outputs.enable-tests == 'true'
uses: ./.github/workflows/_test.yml
with:
os-matrix: ${{ needs.load-config.outputs.os-matrix }}
python-matrix: ${{ needs.load-config.outputs.python-matrix }}
primary-os: ${{ needs.load-config.outputs.primary-os }}
primary-python: ${{ needs.load-config.outputs.primary-python }}
secrets:
TEST_PROXY_URL: ${{ secrets.TEST_PROXY_URL }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# ============================================================
# Summary
# ============================================================
summary:
name: CI Summary
needs: [load-config, test]
if: always()
runs-on: ubuntu-latest
steps:
- name: Check results
run: |
echo "==================================="
echo "CI Pipeline Summary"
echo "==================================="
echo ""
# Tests
if [ "${{ needs.load-config.outputs.enable-tests }}" == "true" ]; then
if [ "${{ needs.test.result }}" == "success" ]; then
echo "✅ Tests: PASSED"
else
echo "❌ Tests: FAILED"
EXIT_CODE=1
fi
else
echo "⊘ Tests: DISABLED"
fi
echo ""
if [ "${EXIT_CODE:-0}" == "1" ]; then
echo "❌ CI Pipeline FAILED"
exit 1
else
echo "✅ CI Pipeline PASSED"
fi