Skip to content

Commit e0f5247

Browse files
authored
Create ci-test.yml
1 parent ca3de31 commit e0f5247

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/ci-test.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Matrix CLI Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
9+
# --------------------------------------------------------
10+
# 1) Test help and listing (simple single-run jobs)
11+
# --------------------------------------------------------
12+
help:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- run: pip install .
20+
- name: Test help flag
21+
run: user-scanner -h
22+
23+
list-modules:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-python@v5
28+
with:
29+
python-version: "3.11"
30+
- run: pip install .
31+
- name: Test module listing
32+
run: user-scanner -l
33+
34+
# --------------------------------------------------------
35+
# 2) Category-based tests (parallel)
36+
# --------------------------------------------------------
37+
category-tests:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
category: [dev, social, creator, community, gaming]
43+
verbose: ["", "-v"]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: "3.11"
49+
- run: pip install .
50+
- name: Run category scan
51+
run: |
52+
echo "Testing category: ${{ matrix.category }} Verbose: '${{ matrix.verbose }}'"
53+
user-scanner -c ${{ matrix.category }} -u testuser ${{ matrix.verbose }}
54+
55+
# --------------------------------------------------------
56+
# 3) Module-based tests (parallel)
57+
# Replace the module list below with real modules
58+
# --------------------------------------------------------
59+
module-tests:
60+
runs-on: ubuntu-latest
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
module: [github, twitter, youtube] # <-- Replace with real modules
65+
verbose: ["", "-v"]
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: actions/setup-python@v5
69+
with:
70+
python-version: "3.11"
71+
- run: pip install .
72+
- name: Run module scan
73+
run: |
74+
echo "Testing module: ${{ matrix.module }} Verbose: '${{ matrix.verbose }}'"
75+
user-scanner -m ${{ matrix.module }} -u testuser ${{ matrix.verbose }}
76+
77+
# --------------------------------------------------------
78+
# 4) Username-only test (simple)
79+
# --------------------------------------------------------
80+
username-tests:
81+
runs-on: ubuntu-latest
82+
strategy:
83+
fail-fast: false
84+
matrix:
85+
verbose: ["", "-v"]
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: actions/setup-python@v5
89+
with:
90+
python-version: "3.11"
91+
- run: pip install .
92+
- name: Test basic username scan
93+
run: |
94+
echo "Testing username-only scan verbose='${{ matrix.verbose }}'"
95+
user-scanner -u testuser ${{ matrix.verbose }}

0 commit comments

Comments
 (0)