Fix heuristics for code execution instructions being flagged as negat… #554
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: models | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install .NET | |
| id: install-dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.x | |
| continue-on-error: true | |
| - name: Retry installing .NET if first attempt failed | |
| if: steps.install-dotnet.outcome == 'failure' | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.x | |
| - name: create models | |
| run: cd ml.net/InclusiveCodeReviews.Convert && dotnet run | |
| - name: npm install | |
| run: cd onnxjs && npm install | |
| - name: npm test | |
| run: cd onnxjs && npm test | |
| - name: archive models | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: models | |
| path: bin | |
| if-no-files-found: error |