serverless/.github/workflows/ci-python.yml
dependabot[bot] 983ec861b9
chore(deps): bump actions/setup-node in the actions group (#13286)
Bumps the actions group with 1 update: [actions/setup-node](https://github.com/actions/setup-node).


Updates `actions/setup-node` from 6.1.0 to 6.2.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](395ad32622...6044e13b5d)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 16:00:35 +00:00

66 lines
2.0 KiB
YAML

name: 'CI: Python Requirements'
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- '.github/workflows/ci-python.yml'
- 'packages/serverless/lib/plugins/python/**'
- 'packages/sf-core/tests/python/**'
jobs:
test-python:
name: 'Test: Python Requirements'
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout Code'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Setup: Node.js'
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 24.x
cache: npm
- name: 'Setup: AWS Credentials'
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
role-to-assume: arn:aws:iam::762003938904:role/GithubActionsDeploymentRole
aws-region: us-east-1
- name: 'Setup: Python'
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3.13
- name: 'Install: Python Tools'
run: |
python -m pip install --upgrade pip
python -m pip install pipenv poetry uv && poetry self add poetry-plugin-export
- name: 'Install: Dependencies'
run: npm ci
- name: 'Setup: Link Framework CLI'
run: |
chmod +x packages/sf-core/bin/sf-core.js
mkdir -p .github/bin
ln -sf "${{ github.workspace }}/packages/sf-core/bin/sf-core.js" \
"${{ github.workspace }}/.github/bin/sls"
echo "${{ github.workspace }}/.github/bin" >> $GITHUB_PATH
- name: 'Test: Python Requirements'
run: |
npm run test:python -w packages/sf-core
env:
SERVERLESS_LICENSE_KEY: ${{ secrets.SERVERLESS_LICENSE_KEY_DEV }}
SLS_AWS_SDK: 3
SERVERLESS_PLATFORM_STAGE: dev
TEST_STAGE: pr-${{ github.event.pull_request.user.login }}