Skip to content

Commit 8442f52

Browse files
Merge pull request #1 from Michi-Tsubaki/tsubaki/set-directory
set dir, make Project.toml and Manifest.toml, make test file
2 parents 285b72c + 25dea24 commit 8442f52

File tree

8 files changed

+337
-0
lines changed

8 files changed

+337
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['*']
7+
pull_request:
8+
workflow_dispatch:
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
jobs:
15+
test:
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 60
19+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20+
actions: write
21+
contents: read
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
version:
26+
- 'lts'
27+
- '1'
28+
os:
29+
- ubuntu-latest
30+
arch:
31+
- x64
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: julia-actions/setup-julia@v2
35+
with:
36+
version: ${{ matrix.version }}
37+
arch: ${{ matrix.arch }}
38+
- uses: julia-actions/cache@v2
39+
- uses: julia-actions/julia-buildpkg@v1
40+
- uses: julia-actions/julia-runtest@v1

Manifest.toml

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.10.3"
4+
manifest_format = "2.0"
5+
project_hash = "35dde1234f947fc2ddf3c91e4dce1c4dae03c448"
6+
7+
[[deps.Aqua]]
8+
deps = ["Compat", "Pkg", "Test"]
9+
git-tree-sha1 = "49b1d7a9870c87ba13dc63f8ccfcf578cb266f95"
10+
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
11+
version = "0.8.9"
12+
13+
[[deps.ArgTools]]
14+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
15+
version = "1.1.1"
16+
17+
[[deps.Artifacts]]
18+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
19+
20+
[[deps.Base64]]
21+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
22+
23+
[[deps.Compat]]
24+
deps = ["TOML", "UUIDs"]
25+
git-tree-sha1 = "8ae8d32e09f0dcf42a36b90d4e17f5dd2e4c4215"
26+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
27+
version = "4.16.0"
28+
weakdeps = ["Dates", "LinearAlgebra"]
29+
30+
[deps.Compat.extensions]
31+
CompatLinearAlgebraExt = "LinearAlgebra"
32+
33+
[[deps.CompilerSupportLibraries_jll]]
34+
deps = ["Artifacts", "Libdl"]
35+
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
36+
version = "1.1.1+0"
37+
38+
[[deps.Dates]]
39+
deps = ["Printf"]
40+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
41+
42+
[[deps.Downloads]]
43+
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
44+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
45+
version = "1.6.0"
46+
47+
[[deps.Example]]
48+
git-tree-sha1 = "e1f0e1a832ccd8e97d6d0348dec33ee139a5aeaf"
49+
uuid = "7876af07-990d-54b4-ab0e-23690620f79a"
50+
version = "0.5.5"
51+
52+
[[deps.FileWatching]]
53+
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
54+
55+
[[deps.InteractiveUtils]]
56+
deps = ["Markdown"]
57+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
58+
59+
[[deps.JLLWrappers]]
60+
deps = ["Artifacts", "Preferences"]
61+
git-tree-sha1 = "a007feb38b422fbdab534406aeca1b86823cb4d6"
62+
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
63+
version = "1.7.0"
64+
65+
[[deps.LibCURL]]
66+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
67+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
68+
version = "0.6.4"
69+
70+
[[deps.LibCURL_jll]]
71+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
72+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
73+
version = "8.4.0+0"
74+
75+
[[deps.LibGit2]]
76+
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
77+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
78+
79+
[[deps.LibGit2_jll]]
80+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
81+
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
82+
version = "1.6.4+0"
83+
84+
[[deps.LibSSH2_jll]]
85+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
86+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
87+
version = "1.11.0+1"
88+
89+
[[deps.Libdl]]
90+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
91+
92+
[[deps.LinearAlgebra]]
93+
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
94+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
95+
96+
[[deps.Logging]]
97+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
98+
99+
[[deps.LoggingExtras]]
100+
deps = ["Dates", "Logging"]
101+
git-tree-sha1 = "f02b56007b064fbfddb4c9cd60161b6dd0f40df3"
102+
uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
103+
version = "1.1.0"
104+
105+
[[deps.Markdown]]
106+
deps = ["Base64"]
107+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
108+
109+
[[deps.MbedTLS_jll]]
110+
deps = ["Artifacts", "Libdl"]
111+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
112+
version = "2.28.2+1"
113+
114+
[[deps.MozillaCACerts_jll]]
115+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
116+
version = "2023.1.10"
117+
118+
[[deps.MuJoCo_jll]]
119+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
120+
git-tree-sha1 = "413b254449c79187a42205707917ff60192f48da"
121+
uuid = "32af7c3b-80ec-5621-8194-2f6cb2280831"
122+
version = "2.3.7+0"
123+
124+
[[deps.NetworkOptions]]
125+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
126+
version = "1.2.0"
127+
128+
[[deps.OpenBLAS_jll]]
129+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
130+
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
131+
version = "0.3.23+4"
132+
133+
[[deps.Pkg]]
134+
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
135+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
136+
version = "1.10.0"
137+
138+
[[deps.PrecompileTools]]
139+
deps = ["Preferences"]
140+
git-tree-sha1 = "5aa36f7049a63a1528fe8f7c3f2113413ffd4e1f"
141+
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
142+
version = "1.2.1"
143+
144+
[[deps.Preferences]]
145+
deps = ["TOML"]
146+
git-tree-sha1 = "9306f6085165d270f7e3db02af26a400d580f5c6"
147+
uuid = "21216c6a-2e73-6563-6e65-726566657250"
148+
version = "1.4.3"
149+
150+
[[deps.Printf]]
151+
deps = ["Unicode"]
152+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
153+
154+
[[deps.REPL]]
155+
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
156+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
157+
158+
[[deps.Random]]
159+
deps = ["SHA"]
160+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
161+
162+
[[deps.ReTestItems]]
163+
deps = ["Dates", "Logging", "LoggingExtras", "Pkg", "Serialization", "Sockets", "Test", "TestEnv"]
164+
git-tree-sha1 = "b255ac21c6bab98f1d24873149991bebe0ba4336"
165+
uuid = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
166+
version = "1.29.0"
167+
168+
[[deps.SHA]]
169+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
170+
version = "0.7.0"
171+
172+
[[deps.Serialization]]
173+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
174+
175+
[[deps.Sockets]]
176+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
177+
178+
[[deps.StaticArrays]]
179+
deps = ["LinearAlgebra", "PrecompileTools", "Random", "StaticArraysCore"]
180+
git-tree-sha1 = "47091a0340a675c738b1304b58161f3b0839d454"
181+
uuid = "90137ffa-7385-5640-81b9-e52037218182"
182+
version = "1.9.10"
183+
184+
[deps.StaticArrays.extensions]
185+
StaticArraysChainRulesCoreExt = "ChainRulesCore"
186+
StaticArraysStatisticsExt = "Statistics"
187+
188+
[deps.StaticArrays.weakdeps]
189+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
190+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
191+
192+
[[deps.StaticArraysCore]]
193+
git-tree-sha1 = "192954ef1208c7019899fbf8049e717f92959682"
194+
uuid = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
195+
version = "1.4.3"
196+
197+
[[deps.TOML]]
198+
deps = ["Dates"]
199+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
200+
version = "1.0.3"
201+
202+
[[deps.Tar]]
203+
deps = ["ArgTools", "SHA"]
204+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
205+
version = "1.10.0"
206+
207+
[[deps.Test]]
208+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
209+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
210+
211+
[[deps.TestEnv]]
212+
deps = ["Pkg"]
213+
git-tree-sha1 = "2a57e05cb9854e7260c354f1bcdbe5190adba19f"
214+
uuid = "1e6cf692-eddd-4d53-88a5-2d735e33781b"
215+
version = "1.102.0"
216+
217+
[[deps.UUIDs]]
218+
deps = ["Random", "SHA"]
219+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
220+
221+
[[deps.Unicode]]
222+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
223+
224+
[[deps.Zlib_jll]]
225+
deps = ["Libdl"]
226+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
227+
version = "1.2.13+1"
228+
229+
[[deps.libblastrampoline_jll]]
230+
deps = ["Artifacts", "Libdl"]
231+
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
232+
version = "5.8.0+1"
233+
234+
[[deps.nghttp2_jll]]
235+
deps = ["Artifacts", "Libdl"]
236+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
237+
version = "1.52.0+1"
238+
239+
[[deps.p7zip_jll]]
240+
deps = ["Artifacts", "Libdl"]
241+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
242+
version = "17.4.0+2"

Project.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name = "ROJ"
2+
uuid = "493365b4-7e18-460b-8b90-ec3e7f80d3eb"
3+
authors = ["Michi-Tsubaki <michi.tsubaki.tech@gmail.com>"]
4+
version = "0.1.0"
5+
6+
[deps]
7+
8+
9+
[compat]
10+
Aqua = "0.8.9"
11+
ReTestItems = "1.29.0"
12+
Test = "1"
13+
Example = "0.5"
14+
MuJoCo_jll = "2"
15+
StaticArrays = "1"
16+
julia = "1.11.3"
17+
18+
[extras]
19+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
20+
Example = "7876af07-990d-54b4-ab0e-23690620f79a"
21+
MuJoCo_jll = "32af7c3b-80ec-5621-8194-2f6cb2280831"
22+
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
23+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
24+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
25+
26+
[targets]
27+
test = ["Aqua", "Test", "ReTestItems"]

src/ROJ.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module ROJ
2+
3+
greet() = print("Hello World!")
4+
5+
end # module ROJ

test/aqua_test.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@testitem "code quality" begin
2+
using Aqua
3+
using ROJ
4+
@testset "Aqua" begin
5+
Aqua.test_all(ROJ)
6+
end
7+
end

test/example_test.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@testitem "example" begin
2+
@testset "easy test" begin
3+
# add what expected to be true
4+
@test 57 == 3 * 19
5+
end
6+
end

test/package.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@test !isempty(ROJ.package.command("list"))
2+
@test !isempty(ROJ.package.getAll())
3+
@test !isempty(ROJ.package.getPath("std_msgs"))
4+
5+
println("All $(basename(@__FILE__)) tests passed.")

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
using ReTestItems: runtests, @testitem
2+
3+
using ROJ
4+
5+
runtests(ROJ)

0 commit comments

Comments
 (0)