Skip to content

Commit

Permalink
Merge pull request #76 from biyooon-ex/bump_ee
Browse files Browse the repository at this point in the history
Bump Elixir and Erlang versions used for development
  • Loading branch information
takasehideki authored Nov 7, 2024
2 parents 540bd9b + ec176d6 commit 838abfd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: CI

env:
OTP_VERSION: 26.1.2
ELIXIR_VERSION: 1.15.7
OTP_VERSION: 27.1.2
ELIXIR_VERSION: 1.17.3
MIX_ENV: test

# based https://github.com/erlef/setup-beam
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.15.7-otp-26
erlang 26.1.2
elixir 1.17.3-otp-27
erlang 27.1.2
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ This allows the creation and communication of a large number of fault-tolerant n
We recommend you use the same version to communicate with other Zenoh clients or routers since version compatibility is somewhat important for Zenoh.
Please also check the description on [Releases](https://github.com/biyooon-ex/zenohex/releases) about the corresponding Zenoh version.

FYI, the development team currently uses the following versions.

- Elixir 1.17.3-otp-27
- Erlang/OTP 27.1.2
- Rust 1.82.0

### Installation

`zenohex` is [available in Hex](https://hex.pm/packages/zenohex).
Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ defmodule Zenohex.MixProject do

defp test_coverage() do
[
ignore_modules: [Zenohex.Nif]
ignore_modules: [Zenohex.Nif],
# WHY: see https://github.com/biyooon-ex/zenohex/issues/77
summary: [threshold: 80]
]
end

Expand Down
8 changes: 4 additions & 4 deletions test/zenohex/nif_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Zenohex.NifTest do
describe "session" do
for {type, value} <- [
{"integer", 0},
{"float", 0.0},
{"float", +0.0},
{"binary", :erlang.term_to_binary("binary")}
] do
test "session_put_#{type}/2", %{session: session} do
Expand Down Expand Up @@ -63,7 +63,7 @@ defmodule Zenohex.NifTest do

for {type, value} <- [
{"integer", 0},
{"float", 0.0},
{"float", +0.0},
{"binary", :erlang.term_to_binary("binary")}
] do
test "publisher_put_#{type}/2", %{session: session} do
Expand Down Expand Up @@ -101,8 +101,8 @@ defmodule Zenohex.NifTest do
Nif.publisher_put_integer(publisher, 0)
assert {:ok, %Sample{value: 0}} = Nif.subscriber_recv_timeout(subscriber, 1000)

Nif.publisher_put_float(publisher, 0.0)
assert {:ok, %Sample{value: 0.0}} = Nif.subscriber_recv_timeout(subscriber, 1000)
Nif.publisher_put_float(publisher, +0.0)
assert {:ok, %Sample{value: +0.0}} = Nif.subscriber_recv_timeout(subscriber, 1000)

Nif.publisher_put_binary(publisher, "binary")
assert {:ok, %Sample{value: "binary"}} = Nif.subscriber_recv_timeout(subscriber, 1000)
Expand Down

0 comments on commit 838abfd

Please sign in to comment.