Skip to content

Commit 51eb7a0

Browse files
committed
Refactor command log for clarity and structure
1 parent 4510d7e commit 51eb7a0

1 file changed

Lines changed: 48 additions & 11 deletions

File tree

logs/commands.md

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,50 @@
11
# Command Log
22

3-
## 2026-01-18
4-
- Create venv: `python -m venv .venv`
5-
- Activate (Git Bash): `source .venv/Scripts/activate`
6-
- Upgrade pip: `python -m pip install --upgrade pip`
7-
- Install requests: `pip install requests`
8-
- Freeze dependencies: `pip freeze > requirements.txt`
9-
- Verify interpreter: `which python`
10-
- Verify pip: `python -m pip --version`
11-
mkdir -p projects/01_api_health_check/{src,bash,output}
12-
13-
chmod +x projects/01_api_health_check/bash/run.sh
3+
## 2026-01-18 - Initial Setup
4+
5+
### Environment
6+
- `python -m venv .venv`
7+
- `source .venv/Scripts/activate`
8+
- `pip install --upgrade pip`
9+
- `pip install requests`
10+
- `pip freeze > requirements.txt`
11+
12+
### Project Structure
13+
- `mkdir -p projects/01_api_health_check/{src,bash,output}`
14+
- Created `health_check.py` in `projects/01_api_health_check/src/`
15+
- Created `run.sh` in `projects/01_api_health_check/bash/`
16+
- `chmod +x projects/01_api_health_check/bash/run.sh`
17+
18+
19+
### Testing
20+
- `bash projects/01_api_health_check/bash/run.sh https://httpbin.org/status/200`
21+
- `echo $?` → 0 (success)
22+
- `bash projects/01_api_health_check/bash/run.sh https://httpbin.org/status/500`
23+
- `echo $?` → 1 (failure detected correctly)
24+
25+
### Git
26+
- `git init`
27+
- `git add .`
28+
- `git commit -m "Initialize automation repo with venv workflow"`
29+
- `git remote add origin https://github.com/nisha318/python-bash-automation.git`
30+
- `git push -u origin main`
31+
32+
---
33+
34+
## 2026-01-19 - CI Integration
35+
36+
### Bug Fixes
37+
- Removed unused import `from unittest import result` from `health_check.py`
38+
- Updated `run.sh` to skip venv activation in CI (detects `CI=true` environment variable)
39+
40+
### GitHub Actions
41+
- Created `.github/workflows/ci.yml`
42+
- Workflow tests both success and failure cases
43+
- `git add .github/workflows/ci.yml projects/01_api_health_check/`
44+
- `git commit -m "Add GitHub Actions CI workflow and fix CI compatibility"`
45+
- `git push`
46+
47+
### Results
48+
- CI pipeline passing ✅
49+
- All tests green
50+
- Badge activated

0 commit comments

Comments
 (0)