diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index b254b63f..856c9d42 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -54,3 +54,25 @@ jobs: - name: Run Integration Tests run: hatch run integ-test + + E2ELint: + name: E2E Lint + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ inputs.tag || inputs.branch || github.ref }} + + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: '3.11' + + - name: Install Hatch + run: | + pip install --upgrade hatch + + - name: Run E2E Lint + run: hatch run e2e:lint diff --git a/test/e2e/test_session_runtime.py b/test/e2e/test_session_runtime.py index deeabde0..c2600391 100644 --- a/test/e2e/test_session_runtime.py +++ b/test/e2e/test_session_runtime.py @@ -537,6 +537,7 @@ def check_worker_service_stopped() -> None: interval=10, ) def wait_worker_started() -> None: + assert worker.worker_id is not None # narrow Optional inside the closure for mypy assert is_worker_started( deadline_client=deadline_client, farm_id=deadline_resources.farm.id,