Skip to content

Commit a70a145

Browse files
authored
fix(test): Remove unused testrail reporting from nightly builds (#1476)
1 parent 5ba7ef2 commit a70a145

File tree

2 files changed

+1
-63
lines changed

2 files changed

+1
-63
lines changed

.github/workflows/pytest.yaml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -244,58 +244,3 @@ jobs:
244244
with:
245245
user: __token__
246246
password: ${{ secrets.PYPI_API_TOKEN }}
247-
248-
testrail-reporting-nightly:
249-
runs-on: ${{ matrix.os }}
250-
if: ${{ github.event_name == 'schedule' || startsWith(github.head_ref, 'testrail') }}
251-
strategy:
252-
matrix:
253-
python-version:
254-
- "3.12"
255-
- "3.11"
256-
- "3.10"
257-
- "3.9"
258-
# - "3.8" # Testrail has errors when running on python 3.8; Skipping
259-
os: [ubuntu-latest]
260-
fail-fast: false
261-
262-
steps:
263-
- uses: actions/checkout@v4
264-
- name: Setup py-shiny
265-
uses: ./.github/py-shiny/setup
266-
with:
267-
python-version: ${{ matrix.python-version }}
268-
269-
- name: Install node.js
270-
uses: actions/setup-node@v4
271-
with:
272-
node-version: "18"
273-
cache: npm
274-
cache-dependency-path: examples/brownian/shinymediapipe/package-lock.json
275-
- name: Install node.js package
276-
working-directory: examples/brownian/shinymediapipe
277-
run: |
278-
npm ci
279-
280-
- name: Run End-to-End tests
281-
timeout-minutes: 20
282-
run: |
283-
make testrail-junit
284-
- name: Report results to Testrail
285-
env:
286-
TESTRAIL_URL: "https://posit.testrail.io"
287-
TESTRAIL_PROJECT: "Shiny-Python"
288-
TESTRAIL_USER: "${{ secrets.TESTRAIL_USER }}"
289-
TESTRAIL_PASSWORD: "${{ secrets.TESTRAIL_PASSWORD }}"
290-
run: |
291-
CURRENT_DATE="$(date +'%Y-%m-%d %H:%M:%S') Nightly tests"
292-
trcli \
293-
--yes \
294-
--host "$TESTRAIL_URL" \
295-
--project "$TESTRAIL_PROJECT" \
296-
--username "$TESTRAIL_USER" \
297-
--password "$TESTRAIL_PASSWORD" \
298-
parse_junit \
299-
--file "report.xml" \
300-
--title "$CURRENT_DATE" \
301-
--close-run

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://www.gnu.org/software/make/manual/make.html#Phony-Targets
22
# Prerequisites of .PHONY are always interpreted as literal target names, never as patterns (even if they contain ‘%’ characters).
3-
# # .PHONY: help clean% check% format% docs% lint test pyright playwright% install% testrail% coverage release js-*
3+
# # .PHONY: help clean% check% format% docs% lint test pyright playwright% install% coverage release js-*
44
# Using `FORCE` as prerequisite to _force_ the target to always run; https://www.gnu.org/software/make/manual/make.html#index-FORCE
55
FORCE: ;
66

@@ -152,9 +152,6 @@ PYTEST_DEPLOYS_BROWSERS:= --browser chromium
152152
install-playwright: FORCE
153153
playwright install --with-deps
154154

155-
install-trcli: FORCE
156-
$(if $(shell which trcli), @echo -n, $(shell pip install trcli))
157-
158155
install-rsconnect: FORCE
159156
pip install git+https://github.com/rstudio/rsconnect-python.git#egg=rsconnect-python
160157

@@ -182,10 +179,6 @@ playwright-deploys: install-rsconnect
182179
playwright-examples: FORCE
183180
$(MAKE) playwright TEST_FILE="tests/playwright/examples/$(SUB_FILE)"
184181

185-
# end-to-end tests with playwright and generate junit report
186-
testrail-junit: install-playwright install-trcli
187-
pytest tests/playwright/shiny/$(SUB_FILE) --junitxml=report.xml $(PYTEST_BROWSERS)
188-
189182
coverage: FORCE ## check combined code coverage (must run e2e last)
190183
pytest --cov-report term-missing --cov=shiny tests/pytest/ tests/playwright/shiny/$(SUB_FILE) $(PYTEST_BROWSERS)
191184
coverage html

0 commit comments

Comments
 (0)