Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/CI-CheckBy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI-CheckBy
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
tags:
- v*
pull_request:
release:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
group:
- CheckByAqua
- CheckByJET
- CheckByExplicitImports
version:
- release
- lts
- nightly
os:
- ubuntu-latest
# - macOS-latest
# - windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/install-juliaup@v2
with:
channel: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
# - uses: julia-actions/julia-uploadcoveralls@v1
# env:
# COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
- SmokeXYOut
- SmokeXYIn
- Regression
- Quality
- Instability
version:
- release
- lts
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand All @@ -28,6 +29,7 @@ DataFrames = "1"
DifferentiationInterface = "0.7"
Distances = "0.10"
Distributions = "0.25"
ExplicitImports = "1"
ForwardDiff = "1"
JET = "0.9, 0.10"
Lux = "1"
Expand Down
3 changes: 3 additions & 0 deletions test/checkby_Aqua_tests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Test.@testset "CheckByAqua" begin
Aqua.test_all(ContinuousNormalizingFlows)
end
23 changes: 23 additions & 0 deletions test/checkby_ExplicitImports_tests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Test.@testset "CheckByExplicitImports" begin
Test.@test isnothing(
ExplicitImports.check_no_implicit_imports(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_all_explicit_imports_via_owners(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_all_explicit_imports_are_public(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_no_stale_explicit_imports(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_all_qualified_accesses_via_owners(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_all_qualified_accesses_are_public(ContinuousNormalizingFlows),
)
Test.@test isnothing(
ExplicitImports.check_no_self_qualified_accesses(ContinuousNormalizingFlows),
)
end
2 changes: 1 addition & 1 deletion test/instability_tests.jl → test/checkby_JET_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Test.@testset "Instability" begin
Test.@testset "CheckByJET" begin
JET.test_package(
ContinuousNormalizingFlows;
target_modules = [ContinuousNormalizingFlows],
Expand Down
6 changes: 0 additions & 6 deletions test/quality_tests.jl

This file was deleted.

17 changes: 11 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ADTypes,
DifferentiationInterface,
Distances,
Distributions,
ExplicitImports,
ForwardDiff,
JET,
Logging,
Expand Down Expand Up @@ -34,15 +35,19 @@ Test.@testset "Overall" begin
include("smoke_tests.jl")
end

if GROUP == "All" || GROUP == "Quality"
include("quality_tests.jl")
if GROUP == "All" || GROUP == "Regression"
include("regression_tests.jl")
end

if GROUP == "All" || GROUP == "Instability"
include("instability_tests.jl")
if GROUP == "All" || GROUP == "CheckByAqua"
include("checkby_Aqua_tests.jl")
end

if GROUP == "All" || GROUP == "Regression"
include("regression_tests.jl")
if GROUP == "All" || GROUP == "CheckByJET"
include("checkby_JET_tests.jl")
end

if GROUP == "All" || GROUP == "CheckByExplicitImports"
include("checkby_ExplicitImports_tests.jl")
end
end
Loading