Skip to content

chore: bump version to 1.0.4 #9

chore: bump version to 1.0.4

chore: bump version to 1.0.4 #9

Workflow file for this run

name: Test Installation
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]
workflow_dispatch:
jobs:
# 阶段1: 快速测试包本身
test-package:
name: Quick test - ${{ matrix.os }} - Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and test package
run: |
pip install .
python -c "import serverless_devs; print('[OK] Version:', serverless_devs.__version__)"
python -c "from serverless_devs.installer import install_serverless_devs; print('[OK] Installer module OK')"
# 阶段2: 完整安装测试(仅在 Ubuntu 和 macOS 上测试,更快)
test-full-installation:
name: Full installation test - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: test-package
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install package and Serverless Devs
run: |
pip install .
python -m serverless_devs.installer --non-interactive
- name: Verify installation
run: |
export PATH="$(npm bin -g):$PATH"
s --version
echo "[OK] Full installation test passed"