Skip to content

Commit c568498

Browse files
Update CI workflow
1 parent bf7c83c commit c568498

1 file changed

Lines changed: 52 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,61 @@
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
323
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
646
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
1150
with:
12-
version: "1.9.0"
51+
version: ${{ matrix.version }}
52+
arch: ${{ matrix.arch }}
53+
- uses: julia-actions/cache@v2
1354
- uses: julia-actions/julia-buildpkg@v1
1455
- uses: julia-actions/julia-runtest@v1
1556
- uses: julia-actions/julia-processcoverage@v1
1657
- uses: codecov/codecov-action@v5
1758
with:
59+
files: lcov.info
1860
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

Comments
 (0)