To use Ruby quickly and easily in GitHub Actions, add this YaML snippet in your Job:
- uses: actions/setup-ruby@v1 with: ruby-version: '2.x'
A complete job (named
integration) example where Ruby packages are called from Python is below.
Example from Python Linguist.
integration: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v1 with: python-version: '3.x' - uses: actions/setup-ruby@v1 with: ruby-version: '2.x' - run: gem install github-linguist --no-document - run: pip install -e .[tests] - run: pytest