From de2d5b761d47396ca951eb5e9d968cc038a24c30 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 2 Jul 2020 20:31:54 -0700 Subject: [PATCH] Use Run.jl (#9) --- .github/workflows/test.yml | 4 +- .github/workflows/vanilla-test.yml | 27 +++ test/environments/main/Manifest.toml | 271 +++++++++++++++++++++++++++ test/environments/main/Project.toml | 7 + 4 files changed, 308 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/vanilla-test.yml create mode 100644 test/environments/main/Manifest.toml create mode 100644 test/environments/main/Project.toml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c477fa..f779ea4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,9 @@ jobs: uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.julia-version }} - - uses: julia-actions/julia-runtest@latest + - run: julia -e 'using Pkg; pkg"add https://github.com/tkf/Run.jl"' + - run: julia -e 'using Run; Run.prepare("test/environments/main")' + - run: julia -e 'using Run; Run.test(project="test/environments/main")' - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/vanilla-test.yml b/.github/workflows/vanilla-test.yml new file mode 100644 index 0000000..437c24f --- /dev/null +++ b/.github/workflows/vanilla-test.yml @@ -0,0 +1,27 @@ +name: Run test via Pkg.test() + +on: + push: + branches: + - master + paths: + - Project.toml + - test/environments/main/Project.toml + pull_request: + paths: + - Project.toml + - test/environments/main/Project.toml + +jobs: + vanilla-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: 1.4 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + env: + JULIA_NUM_THREADS: "2" + CI: "true" diff --git a/test/environments/main/Manifest.toml b/test/environments/main/Manifest.toml new file mode 100644 index 0000000..186803e --- /dev/null +++ b/test/environments/main/Manifest.toml @@ -0,0 +1,271 @@ +# This file is machine-generated - editing it directly is not advised + +[[AbstractTrees]] +deps = ["Markdown"] +git-tree-sha1 = "33e450545eaf7699da1a6e755f9ea65f14077a45" +uuid = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" +version = "0.3.3" + +[[ArgCheck]] +git-tree-sha1 = "59c256cf71c3982484ae4486ee86a3d7da891dea" +uuid = "dce04be8-c92d-5529-be00-80e4d2c0e197" +version = "2.0.0" + +[[BangBang]] +deps = ["Compat", "ConstructionBase", "Future", "InitialValues", "LinearAlgebra", "Requires", "Setfield", "Tables", "ZygoteRules"] +git-tree-sha1 = "3a67bd27ea6a4223a556c7b5191937479a3a717a" +uuid = "198e06fe-97b7-11e9-32a5-e1d131e6ad66" +version = "0.3.26" + +[[Base64]] +uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" + +[[Compat]] +deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "SHA", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"] +git-tree-sha1 = "054993b6611376ddb40203e973e954fd9d1d1902" +uuid = "34da2185-b29b-5c13-b0c7-acf172513d20" +version = "3.12.0" + +[[ConstructionBase]] +git-tree-sha1 = "a2a6a5fea4d6f730ec4c18a76d27ec10e8ec1c50" +uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9" +version = "1.0.0" + +[[DataAPI]] +git-tree-sha1 = "176e23402d80e7743fc26c19c681bfb11246af32" +uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" +version = "1.3.0" + +[[DataStructures]] +deps = ["InteractiveUtils", "OrderedCollections"] +git-tree-sha1 = "edad9434967fdc0a2631a65d902228400642120c" +uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" +version = "0.17.19" + +[[DataValueInterfaces]] +git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6" +uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464" +version = "1.0.0" + +[[Dates]] +deps = ["Printf"] +uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" + +[[DelimitedFiles]] +deps = ["Mmap"] +uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab" + +[[Distributed]] +deps = ["Random", "Serialization", "Sockets"] +uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b" + +[[DocStringExtensions]] +deps = ["LibGit2", "Markdown", "Pkg", "Test"] +git-tree-sha1 = "c5714d9bcdba66389612dc4c47ed827c64112997" +uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" +version = "0.8.2" + +[[Documenter]] +deps = ["Base64", "Dates", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"] +git-tree-sha1 = "f3464968c65fc78846dad1c038c474a2c39bbb23" +uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +version = "0.25.0" + +[[Future]] +deps = ["Random"] +uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820" + +[[InitialValues]] +git-tree-sha1 = "f3458faa269a6edefb2c329c26fdc829771c993b" +uuid = "22cec73e-a1b8-11e9-2c92-598750a2cf9c" +version = "0.2.7" + +[[InteractiveUtils]] +deps = ["Markdown"] +uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" + +[[IteratorInterfaceExtensions]] +git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856" +uuid = "82899510-4779-5014-852e-03e436cf321d" +version = "1.0.0" + +[[JSON]] +deps = ["Dates", "Mmap", "Parsers", "Unicode"] +git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e" +uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" +version = "0.21.0" + +[[LazyGroupBy]] +deps = ["BangBang", "Compat", "InitialValues", "OnlineStats", "Statistics", "Transducers"] +path = "../../.." +uuid = "284b63b1-8759-4032-ba27-6e3216e83f43" +version = "0.1.1-DEV" + +[[LibGit2]] +deps = ["Printf"] +uuid = "76f85450-5226-5b5a-8eaa-529ad045b433" + +[[Libdl]] +uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" + +[[LinearAlgebra]] +deps = ["Libdl"] +uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" + +[[Logging]] +uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" + +[[MacroTools]] +deps = ["Markdown", "Random"] +git-tree-sha1 = "f7d2e3f654af75f01ec49be82c231c382214223a" +uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" +version = "0.5.5" + +[[Markdown]] +deps = ["Base64"] +uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" + +[[Missings]] +deps = ["DataAPI"] +git-tree-sha1 = "de0a5ce9e5289f27df672ffabef4d1e5861247d5" +uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28" +version = "0.4.3" + +[[Mmap]] +uuid = "a63ad114-7e13-5084-954f-fe012c677804" + +[[OnlineStats]] +deps = ["AbstractTrees", "Dates", "LinearAlgebra", "OnlineStatsBase", "OrderedCollections", "Random", "RecipesBase", "Statistics", "StatsBase", "SweepOperator"] +git-tree-sha1 = "e2ff600bfbc7c2549adbe66390c48ba007b6c467" +uuid = "a15396b6-48d5-5d58-9928-6d29437db91e" +version = "1.5.3" + +[[OnlineStatsBase]] +deps = ["AbstractTrees", "Dates", "LinearAlgebra", "OrderedCollections", "Statistics", "StatsBase"] +git-tree-sha1 = "509f36ef5e66d40c4141a661dbdab2e6a99d3a01" +uuid = "925886fa-5bf2-5e8e-b522-a9147a512338" +version = "1.4.3" + +[[OrderedCollections]] +git-tree-sha1 = "12ce190210d278e12644bcadf5b21cbdcf225cd3" +uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" +version = "1.2.0" + +[[Parsers]] +deps = ["Dates", "Test"] +git-tree-sha1 = "20ef902ea02f7000756a4bc19f7b9c24867c6211" +uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" +version = "1.0.6" + +[[Pkg]] +deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"] +uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" + +[[Printf]] +deps = ["Unicode"] +uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" + +[[REPL]] +deps = ["InteractiveUtils", "Markdown", "Sockets"] +uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" + +[[Random]] +deps = ["Serialization"] +uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" + +[[RecipesBase]] +git-tree-sha1 = "54f8ceb165a0f6d083f0d12cb4996f5367c6edbc" +uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" +version = "1.0.1" + +[[Requires]] +deps = ["UUIDs"] +git-tree-sha1 = "d37400976e98018ee840e0ca4f9d20baa231dc6b" +uuid = "ae029012-a4dd-5104-9daa-d747884805df" +version = "1.0.1" + +[[SHA]] +uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" + +[[Serialization]] +uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" + +[[Setfield]] +deps = ["ConstructionBase", "Future", "MacroTools", "Requires"] +git-tree-sha1 = "7a151f918819326a6003dba451dabe65f8c0f6fb" +uuid = "efcf1570-3423-57d1-acb7-fd33fddbac46" +version = "0.6.0" + +[[SharedArrays]] +deps = ["Distributed", "Mmap", "Random", "Serialization"] +uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383" + +[[Sockets]] +uuid = "6462fe0b-24de-5631-8697-dd941f90decc" + +[[SortingAlgorithms]] +deps = ["DataStructures", "Random", "Test"] +git-tree-sha1 = "03f5898c9959f8115e30bc7226ada7d0df554ddd" +uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c" +version = "0.3.1" + +[[SparseArrays]] +deps = ["LinearAlgebra", "Random"] +uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" + +[[SplittablesBase]] +deps = ["Setfield", "Test"] +git-tree-sha1 = "f0ab5afd936acf482da54abd3cc4109091d80ffe" +uuid = "171d559e-b47b-412a-8079-5efa626c420e" +version = "0.1.8" + +[[Statistics]] +deps = ["LinearAlgebra", "SparseArrays"] +uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" + +[[StatsBase]] +deps = ["DataAPI", "DataStructures", "LinearAlgebra", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics"] +git-tree-sha1 = "a6102b1f364befdb05746f386b67c6b7e3262c45" +uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" +version = "0.33.0" + +[[SweepOperator]] +deps = ["LinearAlgebra"] +git-tree-sha1 = "20da2784e79fc0bfdd70592d1b47d7a6034e82d1" +uuid = "7522ee7d-7047-56d0-94d9-4bc626e7058d" +version = "0.3.0" + +[[TableTraits]] +deps = ["IteratorInterfaceExtensions"] +git-tree-sha1 = "b1ad568ba658d8cbb3b892ed5380a6f3e781a81e" +uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c" +version = "1.0.0" + +[[Tables]] +deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "TableTraits", "Test"] +git-tree-sha1 = "c45dcc27331febabc20d86cb3974ef095257dcf3" +uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" +version = "1.0.4" + +[[Test]] +deps = ["Distributed", "InteractiveUtils", "Logging", "Random"] +uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[[Transducers]] +deps = ["ArgCheck", "BangBang", "Distributed", "InitialValues", "Logging", "Markdown", "Requires", "Setfield", "SplittablesBase", "Tables"] +git-tree-sha1 = "3402cf1a1071f046df1cde60298d3a497afa7660" +uuid = "28d57a85-8fef-5791-bfe6-a80928e7c999" +version = "0.4.36" + +[[UUIDs]] +deps = ["Random", "SHA"] +uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" + +[[Unicode]] +uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" + +[[ZygoteRules]] +deps = ["MacroTools"] +git-tree-sha1 = "b3b4882cc9accf6731a08cc39543fbc6b669dca8" +uuid = "700de1a5-db45-46bc-99cf-38207098b444" +version = "0.2.0" diff --git a/test/environments/main/Project.toml b/test/environments/main/Project.toml new file mode 100644 index 0000000..15292de --- /dev/null +++ b/test/environments/main/Project.toml @@ -0,0 +1,7 @@ +[deps] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +LazyGroupBy = "284b63b1-8759-4032-ba27-6e3216e83f43" +OnlineStats = "a15396b6-48d5-5d58-9928-6d29437db91e" +Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"