Skip to content

Commit dab8aac

Browse files
committed
workflow
1 parent e0d86d6 commit dab8aac

2 files changed

Lines changed: 80 additions & 0 deletions

File tree

.github/workflows/ops-toolkit.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)