Skip to content

Commit 104ff95

Browse files
committed
[ORG] Add GitHub action for automatic testing.
1 parent 9bcb4b1 commit 104ff95

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/test.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
# needed to allow julia-actions/cache to delete old caches that it has created
11+
permissions:
12+
actions: write
13+
contents: read
14+
15+
jobs:
16+
test:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
julia-version: ['lts', '1', 'pre']
21+
julia-arch: [x64, x86]
22+
os: [ubuntu-latest, windows-latest, macOS-latest]
23+
exclude:
24+
- os: macOS-latest
25+
julia-arch: x86
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
30+
with:
31+
version: ${{ matrix.julia-version }}
32+
arch: ${{ matrix.julia-arch }}
33+
- uses: julia-actions/cache@v2
34+
- uses: julia-actions/julia-buildpkg@v1
35+
- uses: julia-actions/julia-runtest@v1
36+
with:
37+
annotate: true
38+
test_args: "fast_tests"

test/runtests.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include("Jenkins.jl")
1+
if "fast_tests" in ARGS
2+
include("Jenkins_short.jl")
3+
else
4+
include("Jenkins.jl")
5+
end

0 commit comments

Comments
 (0)