Skip to content

Commit 7fc780d

Browse files
committed
Migrate CI pipeline to GitHub Actions
1 parent ccc1de1 commit 7fc780d

File tree

4 files changed

+29
-57
lines changed

4 files changed

+29
-57
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ruby: [ '2.5', '2.6', '2.7' ]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install BLAS and LAPACK
15+
run: sudo apt-get install -y libopenblas-dev liblapacke-dev
16+
- name: Set up Ruby ${{ matrix.ruby }}
17+
uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
- name: Build and Install
21+
run: |
22+
gem install --no-document bundler
23+
gem install --no-document specific_install
24+
bundle install --jobs 4 --retry 3
25+
gem build numo-linalg.gemspec
26+
gem install numo-linalg-*.gem
27+
- name: Tests
28+
run: rspec --color --format documentation --require spec_helper spec

.travis.yml

-39
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Numo::Linalg : Linear Algebra library with BLAS/LAPACK binding to Numo::NArray
22

33
[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/ruby-numo/numo-linalg)
4-
[![Build Status](https://travis-ci.org/ruby-numo/numo-linalg.svg?branch=master)](https://travis-ci.org/ruby-numo/numo-linalg)
4+
[![Build Status](https://github.com/ruby-numo/numo-linalg/workflows/build/badge.svg)](https://github.com/ruby-numo/numo-linalg/actions)
55

66
[GitHub](https://github.com/ruby-numo/numo-linalg) |
77
[RubyGems](https://rubygems.org/gems/numo-linalg)

spec/linalg/autoloader_spec.rb

-17
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,4 @@
77
expect { described_class.load_library }.to_not raise_error
88
expect(described_class.libs).to_not be_nil
99
end
10-
11-
describe 'private method' do
12-
let(:autoloader) do
13-
class DummyLoader
14-
include Numo::Linalg::Autoloader
15-
end
16-
DummyLoader.new
17-
end
18-
19-
it 'finds BLAS/LAPACK libraries' do
20-
lapack_libs = autoloader.send(:find_lapack_libs, ['/usr/lib', '/usr/local/lib', '/usr/local/opt/lapack/lib'])
21-
expect(lapack_libs[:blas]).to_not be_nil
22-
expect(lapack_libs[:cblas]).to_not be_nil
23-
expect(lapack_libs[:lapack]).to_not be_nil
24-
expect(lapack_libs[:lapacke]).to_not be_nil
25-
end
26-
end
2710
end

0 commit comments

Comments
 (0)