Skip to content

Commit 322ed14

Browse files
authored
Merge pull request #282 from SciRuby/github_actions
Use GitHub Actions for CI
2 parents 8d85353 + b996ef6 commit 322ed14

File tree

2 files changed

+62
-44
lines changed

2 files changed

+62
-44
lines changed

.github/workflows/ubuntu.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
name: Test
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- ubuntu-20.04
17+
- ubuntu-latest
18+
ruby:
19+
- 3.0
20+
- 2.7
21+
- 2.6
22+
- 2.5
23+
- 2.4
24+
- 2.3
25+
- debug
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 1
31+
32+
- uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: ${{ matrix.ruby }}
35+
36+
- name: Install requirements on ubuntu
37+
run: |
38+
sudo apt install -y --no-install-recommends \
39+
libczmq-dev \
40+
python3 \
41+
python3-pip \
42+
python3-setuptools
43+
sudo pip3 install wheel
44+
sudo pip3 install -r ci/requirements.txt
45+
46+
- run: gem install bundler
47+
48+
- run: bundle install --jobs 4 --retry 3
49+
50+
- name: Run tests
51+
env:
52+
PYTHON: python3
53+
ADAPTERS: cztop ffi-rzmq pyzmq
54+
run: |
55+
for adapter in $ADAPTERS; do
56+
export IRUBY_TEST_SESSION_ADAPTER_NAME=$adapter
57+
bundle exec rake test TESTOPTS=-v
58+
done
59+
60+
- run: rake build
61+
62+
- run: gem install pkg/*.gem

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)