File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI/CD for Deep Learning Protocol
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ build-and-test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : 8.0.x
21+
22+ - name : Restore dependencies
23+ run : dotnet restore
24+
25+ - name : Build project
26+ run : dotnet build --no-restore --configuration Release
27+
28+ - name : Run unit tests
29+ run : dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory:./coverage
30+
31+ - name : Upload coverage reports (optional - Codecov example)
32+ uses : codecov/codecov-action@v4
33+ if : success()
34+ with :
35+ token : ${{ secrets.CODECOV_TOKEN }} # Optional: only if you set up Codecov
36+ files : ./coverage/**/*.xml
37+ fail_ci_if_error : true
38+
39+ # Optional: Publish artifact (built binaries)
40+ - name : Publish build artifacts
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : deep-learning-protocol-binaries
44+ path : |
45+ **/bin/Release/
You can’t perform that action at this time.
0 commit comments