Skip to content

Commit 643d07a

Browse files
committed
fix(ci): provision shared lint gate
1 parent 5c254ba commit 643d07a

4 files changed

Lines changed: 90 additions & 11 deletions

File tree

.github/workflows/fast-gate.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ jobs:
4141
site/pnpm-lock.yaml
4242
release-site/pnpm-lock.yaml
4343
44+
- name: Install Linux workspace lint prerequisites
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install -y --no-install-recommends \
48+
pkg-config \
49+
libssl-dev \
50+
libgtk-3-dev \
51+
libwebkit2gtk-4.1-dev \
52+
libayatana-appindicator3-dev \
53+
libxdo-dev
54+
4455
- name: Install prebuilt Rust gate tools
4556
uses: taiki-e/install-action@07b4745e0c39a41822af610387492e3e53aa222b
4657
with:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ precision = 2
8080
[dependency-groups]
8181
dev = [
8282
"psutil>=7.2.2",
83+
"pygments>=2.20.0",
8384
"pysigma>=1.3.3",
84-
"pytest>=8.0",
85+
"pytest>=9.0.3",
8586
"pytest-cov>=6.0",
8687
"pytest-xdist>=3.8.0",
8788
"ruff>=0.15.16",

tests/capsem-release/test_release_test_composition.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,23 @@ def test_static_module_orders_fast_checks_before_docker_preflight() -> None:
113113
assert frontend < clippy < install_preflight
114114

115115

116+
def test_reusable_fast_gate_installs_workspace_clippy_prerequisites() -> None:
117+
workflow = (PROJECT_ROOT / ".github/workflows/fast-gate.yaml").read_text(encoding="utf-8")
118+
prerequisites = workflow.index("Install Linux workspace lint prerequisites")
119+
shared_module = workflow.index("Run shared static module")
120+
121+
assert prerequisites < shared_module
122+
for package in (
123+
"pkg-config",
124+
"libssl-dev",
125+
"libgtk-3-dev",
126+
"libwebkit2gtk-4.1-dev",
127+
"libayatana-appindicator3-dev",
128+
"libxdo-dev",
129+
):
130+
assert package in workflow[prerequisites:shared_module]
131+
132+
116133
def test_standalone_functional_scripts_use_the_project_python() -> None:
117134
for recipe in ("_test-candidate-run", "smoke"):
118135
body = _recipe(recipe)

uv.lock

Lines changed: 60 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)