Skip to content

Commit da00eeb

Browse files
consumer tests (#129)
1 parent 2ca1030 commit da00eeb

File tree

4 files changed

+504
-6
lines changed

4 files changed

+504
-6
lines changed

.github/workflows/consumer_test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Run Consumer Tests on Comment
15+
on: issue_comment
16+
17+
jobs:
18+
consumer_test:
19+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/consumer-test') }}
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/[email protected]
24+
25+
- name: Run consumer tests
26+
run: |
27+
bazel run //src:ide_support
28+
.venv/bin/python -m pytest -s -v src/tests/

src/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ esbonio<1
2222

2323
# Although not required in all targets, we want pytest within ide_support to run tests from the IDE.
2424
debugpy
25+
rich

src/requirements.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ babel==2.17.0 \
3737
basedpyright==1.29.2 \
3838
--hash=sha256:12c49186003b9f69a028615da883ef97035ea2119a9e3f93a00091b3a27088a6 \
3939
--hash=sha256:f389e2997de33d038c5065fd85bff351fbdc62fa6d6371c7b947fc3bce8d437d
40-
# via -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
40+
# via -r external/score_python_basics~/requirements.txt
4141
beautifulsoup4==4.13.4 \
4242
--hash=sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b \
4343
--hash=sha256:dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195
@@ -438,7 +438,7 @@ iniconfig==2.1.0 \
438438
--hash=sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7 \
439439
--hash=sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760
440440
# via
441-
# -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
441+
# -r external/score_python_basics~/requirements.txt
442442
# pytest
443443
jinja2==3.1.6 \
444444
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
@@ -546,6 +546,7 @@ markdown-it-py==3.0.0 \
546546
# via
547547
# mdit-py-plugins
548548
# myst-parser
549+
# rich
549550
markupsafe==3.0.2 \
550551
--hash=sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4 \
551552
--hash=sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30 \
@@ -668,7 +669,7 @@ nodejs-wheel-binaries==22.16.0 \
668669
--hash=sha256:d695832f026df3a0cf9a089d222225939de9d1b67f8f0a353b79f015aabbe7e2 \
669670
--hash=sha256:dbfccbcd558d2f142ccf66d8c3a098022bf4436db9525b5b8d32169ce185d99e
670671
# via
671-
# -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
672+
# -r external/score_python_basics~/requirements.txt
672673
# basedpyright
673674
numpy==2.2.5 \
674675
--hash=sha256:0255732338c4fdd00996c0421884ea8a3651eea555c3a56b84892b66f696eb70 \
@@ -733,7 +734,7 @@ packaging==25.0 \
733734
--hash=sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484 \
734735
--hash=sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f
735736
# via
736-
# -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
737+
# -r external/score_python_basics~/requirements.txt
737738
# matplotlib
738739
# pytest
739740
# sphinx
@@ -828,7 +829,7 @@ pluggy==1.6.0 \
828829
--hash=sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3 \
829830
--hash=sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746
830831
# via
831-
# -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
832+
# -r external/score_python_basics~/requirements.txt
832833
# pytest
833834
pycparser==2.22 \
834835
--hash=sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6 \
@@ -852,6 +853,7 @@ pygments==2.19.1 \
852853
# via
853854
# accessible-pygments
854855
# pydata-sphinx-theme
856+
# rich
855857
# sphinx
856858
pyjwt[crypto]==2.10.1 \
857859
--hash=sha256:3cc5772eb20009233caf06e9d8a0577824723b44e6648ee0a2aedb6cf9381953 \
@@ -880,7 +882,7 @@ pyspellchecker==0.8.2 \
880882
pytest==8.3.5 \
881883
--hash=sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820 \
882884
--hash=sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845
883-
# via -r /home/maxi/.cache/bazel/_bazel_maxi/f48cff2378be6375aa481f2a5c918c10/external/score_python_basics~/requirements.txt
885+
# via -r external/score_python_basics~/requirements.txt
884886
python-dateutil==2.9.0.post0 \
885887
--hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
886888
--hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
@@ -958,6 +960,10 @@ requests-file==2.1.0 \
958960
--hash=sha256:0f549a3f3b0699415ac04d167e9cb39bccfb730cb832b4d20be3d9867356e658 \
959961
--hash=sha256:cf270de5a4c5874e84599fc5778303d496c10ae5e870bfa378818f35d21bda5c
960962
# via sphinx-needs
963+
rich==14.0.0 \
964+
--hash=sha256:1c9491e1951aac09caffd42f448ee3d04e58923ffe14993f6e83068dc395d7e0 \
965+
--hash=sha256:82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725
966+
# via -r src/requirements.in
961967
roman-numerals-py==3.1.0 \
962968
--hash=sha256:9da2ad2fb670bcf24e81070ceb3be72f6c11c440d73bd579fbeca1e9f330954c \
963969
--hash=sha256:be4bf804f083a4ce001b5eb7e3c0862479d10f94c936f6c4e5f250aa5ff5bd2d

0 commit comments

Comments
 (0)