Skip to content

Commit a76655a

Browse files
committed
added file generation
1 parent 8fe6caf commit a76655a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main-tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,30 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install -r requirements.txt
2424
25+
- name: Generate output_commits.csv
26+
run: python main.py --commits -l test_list.txt -o output_commits.csv -t ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Compare CSV files (commits)
29+
run: python compare_csv.py output_commits.csv .github/workflows/reference_commits.csv
30+
31+
- name: Generate output_contributors.csv
32+
run: python main.py --contributors -l test_list.txt -o output_contributors.csv -t ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Compare CSV files (contributors)
35+
run: python compare_csv.py output_contributors.csv .github/workflows/reference_contributors.csv
36+
37+
- name: Generate output_issues.csv
38+
run: python main.py --issues -l test_list.txt -o output_issues.csv -t ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Compare CSV files (issues)
41+
run: python compare_csv.py output_issues.csv .github/workflows/reference_issues.csv
42+
43+
- name: Generate output_pulls.csv
44+
run: python main.py --pulls -l test_list.txt -o output_pulls.csv -t ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Compare CSV files (pulls)
47+
run: python compare_csv.py output_pulls.csv .github/workflows/reference_pulls.csv
48+
2549
- name: Set environment variables
2650
run: |
2751
echo "BASE_URL=https://api.github.com" >> $GITHUB_ENV
@@ -46,6 +70,10 @@ jobs:
4670
4771
- name: Compare output with reference CSV (commits)
4872
run: |
73+
if [ ! -f output_commits.csv ]; then
74+
echo 'output_commits.csv not found, skipping compare.'
75+
exit 1
76+
fi
4977
python compare_csv.py output_commits.csv .github/workflows/reference_commits.csv
5078
5179
- name: Run main.py and save output (contributors)
@@ -59,6 +87,10 @@ jobs:
5987
6088
- name: Compare output with reference CSV (contributors)
6189
run: |
90+
if [ ! -f output_contributors.csv ]; then
91+
echo 'output_contributors.csv not found, skipping compare.'
92+
exit 1
93+
fi
6294
python compare_csv.py output_contributors.csv .github/workflows/reference_contributors.csv
6395
6496
- name: Run main.py and save output (issues)
@@ -72,6 +104,10 @@ jobs:
72104
73105
- name: Compare output with reference CSV (issues)
74106
run: |
107+
if [ ! -f output_issues.csv ]; then
108+
echo 'output_issues.csv not found, skipping compare.'
109+
exit 1
110+
fi
75111
python compare_csv.py output_issues.csv .github/workflows/reference_issues.csv
76112
77113
- name: Run main.py and save output (pulls)
@@ -85,5 +121,9 @@ jobs:
85121
86122
- name: Compare output with reference CSV (pulls)
87123
run: |
124+
if [ ! -f output_pulls.csv ]; then
125+
echo 'output_pulls.csv not found, skipping compare.'
126+
exit 1
127+
fi
88128
python compare_csv.py output_pulls.csv .github/workflows/reference_pulls.csv
89129

0 commit comments

Comments
 (0)