This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e70b8d6d9a0 Stabilising shared timezone tests and running them in CI 
(#54860)
e70b8d6d9a0 is described below

commit e70b8d6d9a0426020f35f45f8688c7884d8d2dfe
Author: Amogh Desai <amoghrajesh1...@gmail.com>
AuthorDate: Sat Aug 23 13:55:12 2025 +0530

    Stabilising shared timezone tests and running them in CI (#54860)
---
 .github/workflows/basic-tests.yml                  | 18 ++++++++++++
 shared/timezones/pyproject.toml                    |  6 ++++
 .../{pyproject.toml => tests/conftest.py}          | 32 ++--------------------
 3 files changed, 27 insertions(+), 29 deletions(-)

diff --git a/.github/workflows/basic-tests.yml 
b/.github/workflows/basic-tests.yml
index 00ab0c9804c..fa2ed1374d1 100644
--- a/.github/workflows/basic-tests.yml
+++ b/.github/workflows/basic-tests.yml
@@ -104,6 +104,24 @@ jobs:
       - name: "Run shared secrets masker tests"
         run: uv run --group dev pytest --color=yes
         working-directory: ./shared/secrets_masker/
+  tests-shared-timezones:
+    timeout-minutes: 10
+    name: Shared timezone tests
+    runs-on: ${{ fromJSON(inputs.runners) }}
+    steps:
+      - name: "Cleanup repo"
+        shell: bash
+        run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm 
-rf /workspace/*"
+      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  # 
v4.2.2
+        with:
+          persist-credentials: false
+      - name: "Prepare and cleanup runner"
+        run: ./scripts/ci/prepare_and_cleanup_runner.sh
+      - name: "Install Breeze"
+        uses: ./.github/actions/breeze
+      - name: "Run shared timezone tests"
+        run: uv run --group dev pytest --color=yes
+        working-directory: ./shared/timezones/
   tests-ui:
     timeout-minutes: 15
     name: React UI tests
diff --git a/shared/timezones/pyproject.toml b/shared/timezones/pyproject.toml
index 51928c22492..bd9a43af83c 100644
--- a/shared/timezones/pyproject.toml
+++ b/shared/timezones/pyproject.toml
@@ -25,6 +25,12 @@ classifiers = [
 
 dependencies = [
     "pendulum>=3.1.0",
+    "methodtools>=0.4.7",
+]
+
+[dependency-groups]
+dev = [
+    "apache-airflow-devel-common",
 ]
 
 [build-system]
diff --git a/shared/timezones/pyproject.toml 
b/shared/timezones/tests/conftest.py
similarity index 54%
copy from shared/timezones/pyproject.toml
copy to shared/timezones/tests/conftest.py
index 51928c22492..93aecf26184 100644
--- a/shared/timezones/pyproject.toml
+++ b/shared/timezones/tests/conftest.py
@@ -14,34 +14,8 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+from __future__ import annotations
 
-[project]
-name = "apache-airflow-shared-timezones"
-description = "Shared timezone code for Airflow distributions"
-version = "0.0"
-classifiers = [
-    "Private :: Do Not Upload",
-]
+import os
 
-dependencies = [
-    "pendulum>=3.1.0",
-]
-
-[build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
-
-[tool.hatch.build.targets.wheel]
-packages = ["src/airflow_shared"]
-
-[tool.ruff]
-extend = "../../pyproject.toml"
-src = ["src"]
-
-[tool.ruff.lint.per-file-ignores]
-# Ignore Doc rules et al for anything outside of tests
-"!src/*" = ["D", "S101", "TRY002"]
-
-[tool.ruff.lint.flake8-tidy-imports]
-# Override the workspace level default
-ban-relative-imports = "parents"
+os.environ["_AIRFLOW__AS_LIBRARY"] = "true"

Reply via email to