Skip to content

Commit e4c6c69

Browse files
committed
refactor github actions
1 parent b4a4b98 commit e4c6c69

File tree

1 file changed

+45
-35
lines changed

1 file changed

+45
-35
lines changed

.github/workflows/actions.yml

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33,59 +33,69 @@ jobs:
3333
version: ${{ matrix.julia-version }}
3434
- uses: julia-actions/cache@v1
3535
- uses: julia-actions/julia-buildpkg@v1
36+
- uses: julia-actions/julia-runtest@v1
37+
38+
RunMoreTests:
39+
needs: Test
40+
if: github.event.ref == 'refs/heads/master'
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: julia-actions/setup-julia@v1
45+
- uses: julia-actions/cache@v1
46+
- uses: julia-actions/julia-buildpkg@v1
3647
# - uses: julia-actions/julia-runtest@v1
37-
- name: runtests - basic
48+
- name: ARGS to filter the targets
3849
run: |
39-
true
40-
julia --project=. -e 'using Pkg; Pkg.test()'
50+
cd test/
51+
julia --project=.. runtests.jl jive
52+
julia --project=.. runtests.jl jive/s jive/m start=2
53+
cd ../
54+
55+
- name: enable_distributed, JIVE_PROCS
56+
run: |
57+
cd test/
58+
julia --project=.. -pauto -e 'using Jive; runtests(@__DIR__)'
59+
julia --project=.. -pauto -e 'using Jive; runtests(@__DIR__, enable_distributed=false)'
60+
cd ../
4161
JIVE_PROCS=auto julia --project=. -e 'using Pkg; Pkg.test()'
4262
JIVE_PROCS=0 julia --project=. -pauto -e 'using Pkg; Pkg.test()'
4363
44-
cd test
45-
julia --project=.. runtests.jl jive
46-
julia --project=.. runtests.jl jive/s jive/m start=2
47-
cd ..
48-
49-
- name: runtests - dev .
64+
- name: test throwing errors
5065
run: |
51-
julia -e 'using Pkg; Pkg.develop(path=".")'
52-
cd test
53-
julia --color=yes -pauto runtests.jl jive/s jive/m start=2
54-
julia --color=yes -pauto -e 'using Jive; runtests(@__DIR__, skip=["Example", "errors", "jive/onlyonce/heavy.jl", "jive/__END__/included.jl", "jive/s", "jive/__REPL__"], node1=["jive/m"])'
55-
julia --color=yes -pauto -e 'using Jive; runtests(@__DIR__, skip=["jive/__END__/included.jl", "jive/__REPL__"], targets=["errors", "jive"], node1=["jive/m"])' || true
56-
julia --color=yes -e 'using Jive; runtests(@__DIR__, skip=["jive/__END__/included.jl", "jive/__REPL__"], targets=["errors", "jive"], stop_on_failure=true)' || true
57-
cd ..
66+
cd test/
67+
julia --project=.. -e 'using Jive; runtests(@__DIR__, targets=["errors"], stop_on_failure=true)' || true
68+
julia --project=.. -e 'using Jive; runtests(@__DIR__, targets=["errors"])' || true
69+
cd ../
5870
59-
- name: revise
71+
- name: using Revise
6072
run: |
6173
cd test/Example/test/
6274
julia --project=.. -e 'using Pkg; Pkg.add("Revise"); p1 = @async include("revise.jl"); Timer(3) do t; touch("example/test3.jl"); sleep(0.5); rm("example/test3.jl"); sleep(1); exit(0); end; wait(p1)' example
6375
cd ../../../
6476
6577
RunForWindows:
66-
needs: Test
78+
needs: RunMoreTests
6779
if: github.event.ref == 'refs/heads/master'
6880
runs-on: windows-latest
6981
steps:
70-
- uses: actions/checkout@v4
71-
- uses: julia-actions/setup-julia@v1
72-
- uses: julia-actions/cache@v1
73-
- uses: julia-actions/julia-buildpkg@v1
74-
- uses: julia-actions/julia-runtest@v1
82+
- uses: actions/checkout@v4
83+
- uses: julia-actions/setup-julia@v1
84+
- uses: julia-actions/cache@v1
85+
- uses: julia-actions/julia-buildpkg@v1
86+
- uses: julia-actions/julia-runtest@v1
7587

7688
Coverage:
77-
needs: Test
89+
needs: RunMoreTests
7890
if: github.event.ref == 'refs/heads/master'
7991
runs-on: ubuntu-latest
8092
steps:
81-
- uses: actions/checkout@v4
82-
- uses: julia-actions/setup-julia@v1
83-
- uses: julia-actions/cache@v1
84-
- uses: julia-actions/julia-buildpkg@v1
85-
# - uses: julia-actions/julia-runtest@v1
86-
- name: coverage
87-
run: |
88-
julia --version
89-
julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
90-
julia --project=. -e 'using Pkg; Pkg.add("Coverage"); using Coverage; cov = Coverage.process_folder(); mkdir("coverage"); Coverage.LCOV.writefile("coverage/lcov.info", cov)'
91-
- uses: codecov/codecov-action@v1
93+
- uses: actions/checkout@v4
94+
- uses: julia-actions/setup-julia@v1
95+
- uses: julia-actions/cache@v1
96+
- uses: julia-actions/julia-buildpkg@v1
97+
- uses: julia-actions/julia-runtest@v1
98+
- uses: julia-actions/julia-processcoverage@v1
99+
- uses: codecov/codecov-action@v1
100+
with:
101+
file: lcov.info

0 commit comments

Comments
 (0)