Skip to content

Commit 6f5e7a3

Browse files
committed
Add .github/workflows/ci.yml for GitHub best practices
1 parent eaf8590 commit 6f5e7a3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
30+
- name: List available generators
31+
run: python generate.py --list
32+
33+
- name: Run test generation
34+
run: python generate.py --generator household_survey --rows 100 --output /tmp/test_output.csv
35+
36+
- name: Validate output exists
37+
run: test -f /tmp/test_output.csv && echo "Output file generated successfully"

0 commit comments

Comments
 (0)