Migrate GPU gputest calls to the shared test_gradients
#1655
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - staging | |
| - trying | |
| tags: '*' | |
| pull_request: | |
| concurrency: | |
| # Cancel any in-progress run when a new commit is pushed to the same PR/branch, | |
| # to save CI resources on frequent pushes. Runs on `master` are never cancelled. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| # needed to allow julia-actions/cache to delete old caches that it has created | |
| permissions: | |
| actions: write | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: | |
| - '1.10' # uncomment when julia 1.10 is out | |
| - '1' # automatically expands to the latest stable 1.x release of Julia | |
| - 'nightly' | |
| os: | |
| - ubuntu-latest | |
| # - macOS-latest | |
| # - windows-latest | |
| include: | |
| - os: windows-latest | |
| version: '1' | |
| - os: macOS-latest | |
| version: '1' | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: ${{ matrix.version }} | |
| - uses: julia-actions/cache@v3 | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - name: "Run test without coverage" | |
| uses: julia-actions/julia-runtest@v1 | |
| if: ${{ !contains(fromJson('["1"]'), matrix.version) || matrix.os != 'ubuntu-latest' }} | |
| with: | |
| coverage: false | |
| - name: "Run test with coverage" | |
| uses: julia-actions/julia-runtest@v1 | |
| if: contains(fromJson('["1"]'), matrix.version) && matrix.os == 'ubuntu-latest' | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| if: contains(fromJson('["1"]'), matrix.version) && matrix.os == 'ubuntu-latest' | |
| - uses: codecov/codecov-action@v7 | |
| if: contains(fromJson('["1"]'), matrix.version) && matrix.os == 'ubuntu-latest' | |
| with: | |
| file: lcov.info | |
| test-threaded: | |
| name: Julia 1 - ubuntu-latest - 2 threads | |
| runs-on: ubuntu-latest | |
| env: | |
| NNLIB_TEST_THREADED: 'true' | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: '1' | |
| - uses: julia-actions/cache@v3 | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - uses: julia-actions/julia-runtest@v1 | |
| with: | |
| coverage: false |