From ddcaed13c7dbcd413497f4ed36b214b03e4c8c1e Mon Sep 17 00:00:00 2001 From: Itamar Gafni Date: Tue, 10 Mar 2026 17:46:21 +0000 Subject: [PATCH 1/2] fix: version test accepts any semver, fuzz workflow only on push - Change test_version_is_0_1_0 to test_version_is_semver so it doesn't break on every version bump - Remove pull_request trigger from fuzz.yml to avoid running 8 fuzz targets on PRs to main Co-Authored-By: Claude Opus 4.6 --- .github/workflows/fuzz.yml | 2 -- tests/unit/init_test.py | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 19f94f8..8b5df37 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -3,8 +3,6 @@ name: Fuzz Testing on: push: branches: [develop] - pull_request: - branches: [develop] jobs: fuzz: diff --git a/tests/unit/init_test.py b/tests/unit/init_test.py index 993aab0..37f5c01 100644 --- a/tests/unit/init_test.py +++ b/tests/unit/init_test.py @@ -7,8 +7,10 @@ class TestVersion: - def test_version_is_0_1_0(self): - assert pyjsclear.__version__ == '0.1.0' + def test_version_is_semver(self): + parts = pyjsclear.__version__.split('.') + assert len(parts) == 3 + assert all(p.isdigit() for p in parts) class TestDeobfuscate: From 3bba6de65ce484c028220a9a5d383e6013986eb6 Mon Sep 17 00:00:00 2001 From: Itamar Gafni Date: Tue, 10 Mar 2026 18:03:26 +0000 Subject: [PATCH 2/2] ci: run tests on PRs and pushes to develop branch --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 99b9ac8..0d6e378 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,9 @@ name: Tests on: push: - branches: [main] + branches: [main, develop] pull_request: - branches: [main] + branches: [main, develop] jobs: test: