File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
ci :
17
- name : " Run Tests (${{ matrix.label }})"
17
+ name : " Run Tests (Ruby ${{ matrix.ruby_version }}, native_vector: ${{ matrix.native_vector }})"
18
18
runs-on : " ubuntu-latest"
19
19
env :
20
20
# See https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#matrix-of-gemfiles
21
21
BUNDLE_GEMFILE : ${{ matrix.gemfile }}
22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
+ ruby_version : ["2.7", "3.0", "3.1", "jruby-9.3.4.0"]
26
+ native_vector : [true, false]
25
27
include :
26
- - label : Ruby 2.7
27
- ruby_version : " 2.7"
28
+ - ruby_version : " 2.7"
28
29
gemfile : Gemfile
29
- - label : Ruby 3.0
30
- ruby_version : " 3.0"
30
+ - ruby_version : " 3.0"
31
31
gemfile : Gemfile
32
- - label : Ruby 3.1
33
- ruby_version : " 3.1"
32
+ - ruby_version : " 3.1"
34
33
gemfile : Gemfile
35
- - label : JRuby 9.3.4.0
36
- ruby_version : " jruby-9.3.4.0"
34
+ - ruby_version : " jruby-9.3.4.0"
37
35
gemfile : Gemfile-jruby
38
36
steps :
39
37
- name : Checkout Repository
43
41
with :
44
42
ruby-version : ${{ matrix.ruby_version }}
45
43
bundler-cache : true
44
+ - name : Install GSL Gem
45
+ if : ${{ !matrix.native_vector }}
46
+ run : gem install rb-gsl
46
47
- name : Run Minitest based tests
47
48
run : script/test
49
+ env :
50
+ NAVIVE_VECTOR : ${{ matrix.native_vector }}
51
+
48
52
services :
49
53
redis :
50
54
image : redis
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def test_cached_content_node_option
163
163
end
164
164
165
165
def test_clears_cached_content_node_cache
166
- return unless $GSL
166
+ skip "transposed_search_vector is only used by GSL implementation" unless $GSL
167
167
168
168
lsi = ClassifierReborn ::LSI . new ( cache_node_vectors : true )
169
169
lsi . add_item @str1 , 'Dog'
@@ -192,7 +192,7 @@ def test_keyword_search
192
192
end
193
193
194
194
def test_invalid_searching_when_using_gsl
195
- return unless $GSL
195
+ skip "Only GSL currently raises invalid search error" unless $GSL
196
196
197
197
lsi = ClassifierReborn ::LSI . new
198
198
lsi . add_item @str1 , 'Dog'
You can’t perform that action at this time.
0 commit comments