|
1 | | -name: Upload coverage reports to Codecov |
2 | | -on: [push, pull_request] |
| 1 | +# This is a basic workflow to help you get started with Actions |
| 2 | + |
| 3 | +name: CI |
| 4 | + |
| 5 | +# Controls when the workflow will run |
| 6 | +on: |
| 7 | + # Triggers the workflow on push or pull request events but only for the "main" branch |
| 8 | + push: |
| 9 | + branches: [ "main" ] |
| 10 | + pull_request: |
| 11 | + branches: [ "main" ] |
| 12 | + |
| 13 | + # Allows you to run this workflow manually from the Actions tab |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +concurrency: |
| 17 | + # Skip intermediate builds: always. |
| 18 | + # Cancel intermediate builds: only if it is a pull request build. |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 21 | + |
| 22 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
3 | 23 | jobs: |
4 | | - run: |
5 | | - runs-on: ubuntu-latest |
| 24 | + # This workflow contains a single job called "test" |
| 25 | + test: |
| 26 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 27 | + |
| 28 | + # The type of runner that the job will run on |
| 29 | + runs-on: ${{ matrix.os }} |
| 30 | + timeout-minutes: 60 |
| 31 | + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created |
| 32 | + actions: write |
| 33 | + contents: read |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + matrix: |
| 37 | + version: |
| 38 | + - '1' |
| 39 | + - 'lts' |
| 40 | + os: |
| 41 | + - ubuntu-latest |
| 42 | + arch: |
| 43 | + - x64 |
| 44 | + |
| 45 | + # Steps represent a sequence of tasks that will be executed as part of the job |
6 | 46 | steps: |
7 | | - - name: Checkout |
8 | | - uses: actions/checkout@v2 |
9 | | - - name: Set up Julia 1.9.0 |
10 | | - uses: julia-actions/setup-julia@v1 |
| 47 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 48 | + - uses: actions/checkout@v5 |
| 49 | + - uses: julia-actions/setup-julia@v2 |
11 | 50 | with: |
12 | | - version: "1.9.0" |
| 51 | + version: ${{ matrix.version }} |
| 52 | + arch: ${{ matrix.arch }} |
| 53 | + - uses: julia-actions/cache@v2 |
13 | 54 | - uses: julia-actions/julia-buildpkg@v1 |
14 | 55 | - uses: julia-actions/julia-runtest@v1 |
15 | 56 | - uses: julia-actions/julia-processcoverage@v1 |
16 | 57 | - uses: codecov/codecov-action@v5 |
17 | 58 | with: |
| 59 | + files: lcov.info |
18 | 60 | token: ${{ secrets.CODECOV_TOKEN }} |
19 | | - slug: aclai-lab/SoleReasoners.jl |
20 | | - verbose: true # optional (default = false) |
21 | | - |
| 61 | + fail_ci_if_error: false |
0 commit comments