File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : IT Ops Toolkit Checks
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ run-ops-tools :
11+ name : Run Health Check & Log Analyzer
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Make health_check.sh executable
19+ run : chmod +x it_ops_automation_toolkit/scripts/health_check.sh
20+
21+ - name : Run health check script
22+ run : |
23+ ./it_ops_automation_toolkit/scripts/health_check.sh \
24+ | tee health_check_output.txt
25+
26+ - name : Run log analyzer
27+ run : |
28+ python3 it_ops_automation_toolkit/scripts/log_analyzer.py \
29+ it_ops_automation_toolkit/data/app.log \
30+ | tee log_analysis_output.txt
31+
32+ - name : Upload results as artifacts
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : ops-toolkit-results
36+ path : |
37+ health_check_output.txt
38+ log_analysis_output.txt
Original file line number Diff line number Diff line change 1+ name : Banking Data Pipeline — Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ run-tests :
11+ name : Pytest (Python ${{ matrix.python-version }})
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ python-version : ["3.11", "3.12", "3.13"]
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v4
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install dependencies
28+ run : |
29+ cd banking_data_pipeline_python
30+ pip install -r requirements.txt
31+ pip install -e .
32+
33+ - name : Run pytest
34+ run : |
35+ cd banking_data_pipeline_python
36+ pytest --maxfail=1 --disable-warnings -q | tee pytest_output.txt
37+
38+ - name : Upload pytest results
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : etl-pytest-results-${{ matrix.python-version }}
42+ path : banking_data_pipeline_python/pytest_output.txt
You can’t perform that action at this time.
0 commit comments