File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ jobs :
10+
11+ smoke-test :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Create list.txt
19+ run : echo "OSLL/github_repo_commitment_calc" > list.txt
20+
21+ - name : Install dependencies
22+ run : pip install -r requirements.txt
23+
24+ - name : Run test
25+ run : python3 main.py --commits --token ${{ secrets.TEST_TOKEN_GITHUB }} --list list.txt --out out.csv --branch master
26+
27+ - name : Check if out.csv exists
28+ run : ls out.csv
29+
30+ - name : Fail if out.csv does not exist
31+ if : failure()
32+ run : exit 1
33+
34+ - name : Upload test results
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : test-results
38+ path : out.csv
You can’t perform that action at this time.
0 commit comments