add tests softmax #22
This file contains 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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened,review_requested,reopened,synchronize] | |
push: | |
branches: | |
- 'main' | |
tags: '*' | |
check_run: | |
types: [rerequested] | |
schedule: | |
- cron: '0 8 * * 1' # run the cron job one time per week on Monday 8:00 AM | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ contains(matrix.version, 'nightly') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@v1 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
env: | |
USE_DEV: "false" | |
COVERAGE: true | |
- name: Setup LCOV | |
uses: hrishikesh-kadam/setup-lcov@v1 | |
- name: Report code coverage | |
id: coverage | |
uses: zgosalvez/github-actions-report-lcov@v4 | |
with: | |
coverage-files: lcov.info | |
artifact-name: code-coverage-report | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
update-comment: true | |
- name: Create coverage badge | |
uses: schneegans/dynamic-badges-action@v1.7.0 | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: d12677a8265d5cff93a9737ecd36c305 | |
filename: UnboundedBNN__${{ github.ref_name }}.json | |
label: Coverage | |
message: "${{ steps.coverage.outputs.total-coverage }}%" | |
valColorRange: ${{ steps.coverage.outputs.total-coverage }} | |
minColorRange: 40 | |
maxColorRange: 90 | |