Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

ci: lint with ruff, test on Python 3.10, 3.12 and 3.14, pin actions by SHA

Agrici Daniel541876eb384b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index af71736..3867caa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,13 +11,13 @@ permissions:
jobs:
lint:
- name: Python Syntax Check
+ name: Python syntax and lint
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -27,21 +27,30 @@ jobs:
python3 -m py_compile "${PYFILES[@]}"
echo "All ${#PYFILES[@]} scripts passed syntax check"
+ - name: Lint with ruff
+ # Uses the [tool.ruff] settings in pyproject.toml. Pinned so a new ruff
+ # release cannot turn the job red without a change in this repo.
+ run: |
+ pip install ruff==0.17.1
+ ruff check .
+
test:
- name: Test suite (manifests + sync_flow)
+ name: Test suite (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
- env:
- # gh CLI honors GH_TOKEN automatically; sync_flow.py uses gh for auth.
- # Without this, anonymous API requests hit GitHub's 60/hr per-IP rate
- # limit and the sync_flow dry-run test fails on shared-runner IPs.
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ strategy:
+ fail-fast: false
+ matrix:
+ # The supported floor, a middle release, and the newest release.
+ python-version: ["3.10", "3.12", "3.14"]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - name: Set up Python 3.10
- uses: actions/setup-python@v7
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
- python-version: "3.10"
+ python-version: ${{ matrix.python-version }}
+ cache: pip
+ cache-dependency-path: requirements.txt
- name: Install runtime + test deps
# Tests import scripts that import url_safety.py (and others), which
@@ -54,7 +63,10 @@ jobs:
- name: Run pytest
env:
- CLAUDE_SEO_NETWORK_TESTS: "1"
+ # The live GitHub API tests run on one leg only, so the matrix does
+ # not triple the calls. gh honors GH_TOKEN, which keeps sync_flow.py
+ # clear of the anonymous 60/hr per-IP rate limit on shared runners.
+ CLAUDE_SEO_NETWORK_TESTS: ${{ matrix.python-version == '3.10' && '1' || '' }}
GH_TOKEN: ${{ github.token }}
run: pytest tests/ -v
@@ -62,7 +74,7 @@ jobs:
name: Secret scan
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Scan tracked files for leaked credentials
run: |
@@ -92,12 +104,14 @@ jobs:
matrix:
os: [windows-latest, macos-latest]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
+ cache: pip
+ cache-dependency-path: requirements.txt
- name: Install runtime + test deps
run: pip install -r requirements.txt pytest
@@ -115,10 +129,10 @@ jobs:
name: Dependency audit
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
diff --git a/.github/workflows/v2.yml b/.github/workflows/v2.yml
index fef8bbe..fd0f266 100644
--- a/.github/workflows/v2.yml
+++ b/.github/workflows/v2.yml
@@ -27,10 +27,10 @@ jobs:
name: Manifest consistency (15 assertions)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -44,10 +44,10 @@ jobs:
name: SSRF + DNS rebinding suite
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -76,10 +76,10 @@ jobs:
# 60/hr anonymous rate limit. Identical to ci.yml.
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -100,7 +100,7 @@ jobs:
name: Secret scan
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Scan tracked files for leaked credentials
run: |
diff --git a/.github/workflows/windows-smoke.yml b/.github/workflows/windows-smoke.yml
index 0653f80..0f21542 100644
--- a/.github/workflows/windows-smoke.yml
+++ b/.github/workflows/windows-smoke.yml
@@ -63,7 +63,7 @@ jobs:
github.event.pull_request.head.repo.full_name == github.repository
runs-on: windows-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event_name == 'workflow_dispatch' && needs.validate-ref.outputs.ref || github.sha }}
@@ -86,7 +86,7 @@ jobs:
Write-Host "All extension PowerShell scripts parse."
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -194,7 +194,7 @@ jobs:
github.event.pull_request.head.repo.full_name == github.repository
runs-on: windows-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event_name == 'workflow_dispatch' && needs.validate-ref.outputs.ref || github.sha }}
@@ -217,7 +217,7 @@ jobs:
Write-Host "All extension PowerShell scripts parse."
- name: Set up Python 3.10
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"