Merge pull request #419 from Shopify/ba-bump-version #2024
This file contains hidden or 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
| name: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| ruby-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: | |
| - '3.1' | |
| - '3.2' | |
| - '3.3' | |
| - '3.4' | |
| - '4.0' | |
| - 'truffleruby' | |
| minitest: | |
| - '~> 5.11' | |
| - '~> 6.0' | |
| exclude: | |
| # minitest 6 requires Ruby >= 3.2 | |
| - ruby: '3.1' | |
| minitest: '~> 6.0' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install deps | |
| run: | | |
| sudo apt-get install libsnappy-dev | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Run Ruby tests | |
| run: | | |
| bin/before-install | |
| bin/test | |
| env: | |
| SUITE: ruby | |
| REDIS_HOST: localhost | |
| MINITEST_VERSION: ${{ matrix.minitest }} | |
| python-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Python ${{ matrix.python }} | |
| run: | | |
| sudo add-apt-repository -y ppa:deadsnakes/ppa | |
| sudo apt-get -qq update | |
| sudo apt-get install -y python${{ matrix.python }} | |
| # distutils was removed from the stdlib in Python 3.12, so the | |
| # python3.X-distutils package only exists for older versions. | |
| if dpkg --compare-versions "${{ matrix.python }}" lt "3.12"; then | |
| sudo apt-get install -y python${{ matrix.python }}-distutils | |
| fi | |
| sudo pip install autopep8 || true | |
| - name: Run Python tests | |
| run: | | |
| bin/before-install | |
| bin/test | |
| env: | |
| SUITE: python | |
| PYTHON_VERSION: ${{ matrix.python }} | |
| REDIS_HOST: localhost | |
| REDIS_PORT: 6379 |