Skip to content

Commit ee778df

Browse files
authored
Merge pull request #4 from Albatross-Kite-Transport/CI
add CI.yml
2 parents 7d585ba + 1599489 commit ee778df

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/CI.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: '*'
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 40
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.10'
23+
- '1'
24+
- 'pre'
25+
os:
26+
- ubuntu-latest
27+
arch:
28+
- x64
29+
include:
30+
- os: windows-latest
31+
arch: x64
32+
version: 1
33+
- os: macOS-latest
34+
arch: x64
35+
version: 1
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
39+
with:
40+
version: ${{ matrix.version }}
41+
arch: ${{ matrix.arch }}
42+
- uses: actions/cache@v4
43+
env:
44+
cache-name: cache-artifacts
45+
with:
46+
path: ~/.julia/artifacts
47+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
48+
restore-keys: |
49+
${{ runner.os }}-test-${{ env.cache-name }}-
50+
${{ runner.os }}-test-
51+
${{ runner.os }}-
52+
- uses: julia-actions/julia-buildpkg@v1
53+
- uses: julia-actions/julia-runtest@v1
54+
- uses: julia-actions/julia-processcoverage@v1
55+
- uses: codecov/codecov-action@v5
56+
with:
57+
files: lcov.info
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+

0 commit comments

Comments
 (0)