Skip to content

Commit c490872

Browse files
authored
Run tests with and without Revise (#83)
1 parent 79633d0 commit c490872

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
- name: Revise tests
4646
if: ${{ matrix.os == 'ubuntu-latest' }}
4747
run: julia -e 'using Pkg; Pkg.develop(PackageSpec(path=".")); Pkg.add(PackageSpec(url="https://github.com/timholy/Revise.jl")); Pkg.test("Revise")'
48+
- name: Test while running Revise
49+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.version != '1.0' }}
50+
run: julia --project -e 'using Pkg;
51+
Pkg.add("Revise");
52+
Pkg.test("CodeTracking"; coverage=true, test_args=["revise"])'
4853
- uses: julia-actions/julia-processcoverage@v1
4954
- uses: codecov/codecov-action@v1
5055
with:

test/Project.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ using Test, InteractiveUtils, LinearAlgebra, SparseArrays
66

77
using CodeTracking: line_is_decl
88

9+
if !isempty(ARGS) && "revise" ARGS
10+
# For running tests with and without Revise
11+
using Revise
12+
end
13+
914
isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.jl")
1015

1116
@testset "CodeTracking.jl" begin

0 commit comments

Comments
 (0)