fix: upgrade deprecated GitHub Actions to v4/v5 and fix MCP test job
actions/upload-artifact@v3 is fully deprecated and causes instant CI failure. Also upgrades checkout, setup-python, cache, github-script, and codecov actions to their latest major versions to resolve Node.js 20 deprecation warnings. Adds missing pytest install to MCP Vector DB test job and pins ruff>=0.15 in CI to match local tooling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build CLI image
|
- name: Build CLI image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
8
.github/workflows/quality-metrics.yml
vendored
8
.github/workflows/quality-metrics.yml
vendored
@@ -31,10 +31,10 @@ jobs:
|
|||||||
FAIL_THRESHOLD_INPUT: ${{ github.event.inputs.fail_threshold }}
|
FAIL_THRESHOLD_INPUT: ${{ github.event.inputs.fail_threshold }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload quality reports
|
- name: Upload quality reports
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: quality-metrics-reports
|
name: quality-metrics-reports
|
||||||
path: quality_*.txt
|
path: quality_*.txt
|
||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Post summary to PR
|
- name: Post summary to PR
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/scheduled-updates.yml
vendored
6
.github/workflows/scheduled-updates.yml
vendored
@@ -37,12 +37,12 @@ jobs:
|
|||||||
FRAMEWORKS_INPUT: ${{ github.event.inputs.frameworks }}
|
FRAMEWORKS_INPUT: ${{ github.event.inputs.frameworks }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload updated skill
|
- name: Upload updated skill
|
||||||
if: steps.should_update.outputs.update == 'true'
|
if: steps.should_update.outputs.update == 'true'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.FRAMEWORK }}-skill-updated
|
name: ${{ env.FRAMEWORK }}-skill-updated
|
||||||
path: output/${{ env.FRAMEWORK }}.zip
|
path: output/${{ env.FRAMEWORK }}.zip
|
||||||
|
|||||||
15
.github/workflows/test-vector-dbs.yml
vendored
15
.github/workflows/test-vector-dbs.yml
vendored
@@ -35,10 +35,10 @@ jobs:
|
|||||||
PYTHON_VERSION: ${{ matrix.python-version }}
|
PYTHON_VERSION: ${{ matrix.python-version }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
"
|
"
|
||||||
|
|
||||||
- name: Upload test package
|
- name: Upload test package
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-package-${{ env.ADAPTOR_NAME }}-py${{ env.PYTHON_VERSION }}
|
name: test-package-${{ env.ADAPTOR_NAME }}-py${{ env.PYTHON_VERSION }}
|
||||||
path: test_skill-${{ env.ADAPTOR_NAME }}.json
|
path: test_skill-${{ env.ADAPTOR_NAME }}.json
|
||||||
@@ -87,16 +87,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
pip install pytest
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
- name: Run MCP vector DB tests
|
- name: Run MCP vector DB tests
|
||||||
@@ -110,10 +111,10 @@ jobs:
|
|||||||
needs: [test-adaptors, test-mcp-tools]
|
needs: [test-adaptors, test-mcp-tools]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
|
|||||||
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@@ -11,17 +11,17 @@ jobs:
|
|||||||
name: Code Quality (Ruff & Mypy)
|
name: Code Quality (Ruff & Mypy)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install ruff mypy
|
pip install "ruff>=0.15" mypy
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
- name: Run ruff linter
|
- name: Run ruff linter
|
||||||
@@ -53,12 +53,12 @@ jobs:
|
|||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive # Initialize api/configs_repo submodule
|
submodules: recursive # Initialize api/configs_repo submodule
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Cache pip packages
|
- name: Cache pip packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'skill_seeker_mcp/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'skill_seeker_mcp/requirements.txt') }}
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
python -m pytest tests/ --cov=src/skill_seekers --cov-report=xml --cov-report=term
|
python -m pytest tests/ --cov=src/skill_seekers --cov-report=xml --cov-report=term
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: unittests
|
flags: unittests
|
||||||
|
|||||||
8
.github/workflows/vector-db-export.yml
vendored
8
.github/workflows/vector-db-export.yml
vendored
@@ -36,12 +36,12 @@ jobs:
|
|||||||
CONFIG_PATH_INPUT: ${{ github.event.inputs.config_path }}
|
CONFIG_PATH_INPUT: ${{ github.event.inputs.config_path }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload vector database exports
|
- name: Upload vector database exports
|
||||||
if: steps.check_config.outputs.exists == 'true'
|
if: steps.check_config.outputs.exists == 'true'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.SKILL_NAME }}-vector-exports
|
name: ${{ env.SKILL_NAME }}-vector-exports
|
||||||
path: |
|
path: |
|
||||||
@@ -153,7 +153,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload quality report
|
- name: Upload quality report
|
||||||
if: steps.check_config.outputs.exists == 'true'
|
if: steps.check_config.outputs.exists == 'true'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.SKILL_NAME }}-quality-report
|
name: ${{ env.SKILL_NAME }}-quality-report
|
||||||
path: quality_report_${{ env.SKILL_NAME }}.txt
|
path: quality_report_${{ env.SKILL_NAME }}.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user