mirror of
https://github.com/CloakHQ/CloakBrowser.git
synced 2026-06-23 11:41:46 +02:00
ci: fix publish version check — read _version.py without importing
This commit is contained in:
@@ -34,7 +34,7 @@ jobs:
|
|||||||
pytest tests/ -v -m "not slow"
|
pytest tests/ -v -m "not slow"
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22
|
||||||
- name: JavaScript tests
|
- name: JavaScript tests
|
||||||
run: cd js && npm ci && npm run build && npm test
|
run: cd js && npm ci && npm run build && npm test
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
- name: Check tag matches package versions
|
- name: Check tag matches package versions
|
||||||
run: |
|
run: |
|
||||||
TAG="${GITHUB_REF_NAME#v}"
|
TAG="${GITHUB_REF_NAME#v}"
|
||||||
PY=$(python -c 'from cloakbrowser._version import __version__; print(__version__)')
|
PY=$(python -c 'import re; print(re.search(r"__version__\s*=\s*[\"'\'']([^\"'\'']+)", open("cloakbrowser/_version.py").read()).group(1))')
|
||||||
JS=$(python -c 'import json; print(json.load(open("js/package.json"))["version"])')
|
JS=$(python -c 'import json; print(json.load(open("js/package.json"))["version"])')
|
||||||
echo "Tag: $TAG | Python: $PY | npm: $JS"
|
echo "Tag: $TAG | Python: $PY | npm: $JS"
|
||||||
[ "$TAG" = "$PY" ] || { echo "ERROR: tag v$TAG != _version.py $PY"; exit 1; }
|
[ "$TAG" = "$PY" ] || { echo "ERROR: tag v$TAG != _version.py $PY"; exit 1; }
|
||||||
@@ -83,7 +83,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd js && npm ci && npm run build
|
run: cd js && npm ci && npm run build
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
@@ -102,7 +103,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(python -c 'from cloakbrowser._version import __version__; print(__version__)')
|
VERSION=$(python -c 'import re; print(re.search(r"__version__\s*=\s*[\"'\'']([^\"'\'']+)", open("cloakbrowser/_version.py").read()).group(1))')
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
|
|||||||
@@ -177,6 +177,11 @@ All tests verified against live detection services. Last tested: Mar 2026 (Chrom
|
|||||||
<br><em>FingerprintJS web-scraping demo — data served, not blocked</em>
|
<br><em>FingerprintJS web-scraping demo — data served, not blocked</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://i.imgur.com/srCcFtK.png" width="600" alt="deviceandbrowserinfo.com — You are human!">
|
||||||
|
<br><em>deviceandbrowserinfo.com behavioral bot detection — "You are human!" with humanize=True (24/24 signals passed)</em>
|
||||||
|
</p>
|
||||||
|
|
||||||
## Comparison
|
## Comparison
|
||||||
|
|
||||||
| Feature | Playwright | playwright-stealth | undetected-chromedriver | Camoufox | CloakBrowser |
|
| Feature | Playwright | playwright-stealth | undetected-chromedriver | Camoufox | CloakBrowser |
|
||||||
|
|||||||
Reference in New Issue
Block a user