Skip to content

Commit

Permalink
Switch to GitHub Actions for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Mar 11, 2024
1 parent 3f230f1 commit 8324065
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

name: CI
on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1.4', '3.2.3', '3.3.0']
steps:
- name: Install required packages
run: sudo apt update && sudo apt-get install coinor-cbc coinor-libcbc-dev graphviz
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Populate MySQL
run: mysql -h 127.0.0.1 -uroot -Dnose < spec/support/data/mysql.sql
- name: Test
run: |
sed -i '/^--tag/d' .rspec
bundle exec rspec
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
## Configuration files
*.yml
!.scrutinizer.yml
!.travis.yml
!.rubocop.yml
!.github/**

## Log files
gurobi.log
2 changes: 1 addition & 1 deletion nose-cli.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.add_dependency 'ansi-to-html', '~> 0.0.3'
s.add_dependency 'descriptive_statistics', '~> 2.5.1', '>= 2.5.0'
s.add_dependency 'gruff', '~> 0.7.0'
s.add_dependency 'nose', '~> 0.1.4'
s.add_dependency 'nose', '~> 0.2.0'
s.add_dependency 'representable', '= 3.0.0'
s.add_dependency 'table_print', '~> 1.5.6', '>= 1.5.0'
s.add_dependency 'thor', '~> 0.19.4'
Expand Down

0 comments on commit 8324065

Please sign in to comment.