-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading ruby supported versions (#81)
* ci: Run CI on supported stable ruby versions. * fix: Coerce some denominators to rational when calculating inverse beta. This change fixes a segmentation error produced by BigDecimal gem on ruby 3.1.2, where it fails to calculate a big float. It was "fixed" in BigDecimal 3.1.2, but this version might not be compatible with older ruby versions. Reported here: https://bugs.ruby-lang.org/issues/18604 & here: ruby/bigdecimal#220 Potential fix here: ruby/bigdecimal@e236c2e * spec: Add missing test for BigDecimal and goodness of fit.
- Loading branch information
1 parent
5ae8a05
commit 40116ea
Showing
4 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,22 @@ name: Ruby | |
on: [push] | ||
|
||
jobs: | ||
build: | ||
build: # Latest ruby | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby 2.6 | ||
- name: Set up Ruby 3.1 | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: 2.6.8 | ||
ruby-version: 3.1.2 | ||
- name: Build and test with Rake | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 2 --retry 1 | ||
bundle exec rake | ||
build_2_7: | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -28,13 +28,13 @@ jobs: | |
- name: Set up Ruby 2.7 | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: 2.7.4 | ||
ruby-version: 2.7.6 | ||
- name: Build and test with Rake | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 2 --retry 1 | ||
bundle exec rake | ||
build_3_0: | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -44,7 +44,7 @@ jobs: | |
- name: Set up Ruby 3.0 | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: 3.0.2 | ||
ruby-version: 3.0.4 | ||
- name: Build and test with Rake | ||
run: | | ||
gem install bundler | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters