Bump ruby/setup-ruby from 1.267.0 to 1.268.0 (#9480) #13700
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: TestNDeploy | |
| on: [push, pull_request] | |
| jobs: | |
| cache: | |
| name: Caching | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.9, "3.10", "3.11", "3.12", "3.13", "3.14" ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Get pip cache dir | |
| id: pip-cache-dir | |
| run: | | |
| echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
| - name: pip cache | |
| id: pip-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.pip-cache-dir.outputs.dir }} | |
| key: pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.cfg') }} | |
| - name: Update pip | |
| if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Install project dependencies | |
| if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }} | |
| run: | | |
| pip install -r requirements-dev.txt | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| needs: cache | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Retrieve the previously cached dependencies | |
| - name: Get pip cache dir | |
| id: pip-cache | |
| run: | | |
| echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
| - name: pip cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.pip-cache.outputs.dir }} | |
| key: pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.cfg') }} | |
| # Update PIP | |
| - name: Update pip | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Still need to properly install the dependencies - caching will only skip the download part | |
| - name: Install project dependencies | |
| run: | | |
| pip install -r requirements-dev.txt | |
| - name: Lint | |
| run: | | |
| mkdir .mypy_cache | |
| make lint | |
| buildserver: | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Retrieve the previously cached dependencies | |
| - name: Get pip cache dir | |
| id: pip-cache | |
| run: | | |
| echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
| - name: pip cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.pip-cache.outputs.dir }} | |
| key: pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.cfg') }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| tags: motoserver/moto:local | |
| outputs: type=docker,dest=/tmp/localimage.tar | |
| push: false | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: localimage | |
| path: /tmp/localimage.tar | |
| clitest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_cli.yml | |
| cpptest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_cpp.yml | |
| sagemaker_client_test: | |
| needs: lint | |
| uses: ./.github/workflows/tests_sdk_sagemaker.yml | |
| javatest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_java.yml | |
| jstest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_js.yml | |
| dotnettest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_dotnet.yml | |
| rubytest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_ruby.yml | |
| gotest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_sdk_go.yml | |
| terraformexamplestest: | |
| needs: buildserver | |
| uses: ./.github/workflows/tests_terraform_examples.yml | |
| test: | |
| needs: [lint] | |
| if: "!contains(github.event.pull_request.labels.*.name, 'java')" | |
| uses: ./.github/workflows/tests_decoratormode.yml | |
| secrets: inherit | |
| testserver: | |
| needs: [lint] | |
| if: "!contains(github.event.pull_request.labels.*.name, 'java')" | |
| uses: ./.github/workflows/tests_servermode.yml | |
| secrets: inherit | |
| testproxy: | |
| needs: [lint] | |
| if: "!contains(github.event.pull_request.labels.*.name, 'java')" | |
| uses: ./.github/workflows/tests_proxymode.yml | |
| testcdk: | |
| needs: [buildserver] | |
| if: "!contains(github.event.pull_request.labels.*.name, 'java')" | |
| uses: ./.github/workflows/tests_cdk.yml |