Skip to content

Bump cross-spawn and serverless in /{{cookiecutter.project_slug}} #72

Bump cross-spawn and serverless in /{{cookiecutter.project_slug}}

Bump cross-spawn and serverless in /{{cookiecutter.project_slug}} #72

Workflow file for this run

name: CI
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test -- ${{ matrix.testenv }}
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
testenv:
- serverless
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Node.js npm cache
uses: actions/cache@v4
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('.nvmrc', 'package.json', 'package-lock.json') }}
- name: Run tests
run: |
pip install $(grep -E "^(tox|tox-uv)==" requirements/local.txt)
tox -e ${{ matrix.testenv }}