Skip to content

Commit f835d28

Browse files
committed
test: added integration test for metadata_validate_command
1 parent 4aa5a86 commit f835d28

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,10 @@ pipeline {
487487
'UV_TOOL_DIR=/tmp/uvtools',
488488
'UV_PYTHON_CACHE_DIR=/tmp/uvpython',
489489
'UV_CACHE_DIR=/tmp/uvcache',
490+
"TRIPWIRE_SAMPLE_FILES=${WORKSPACE}/samples",
490491
]){
491492
sh "uv python install cpython-${entry.PYTHON_VERSION}"
493+
unstash 'SAMPLE_FILES'
492494
def attempt = 0
493495
retry(2){
494496
attempt += 1
@@ -507,11 +509,13 @@ pipeline {
507509
'UV_PYTHON_CACHE_DIR=C:\\Users\\ContainerUser\\Documents\\cache\\uvpython',
508510
'UV_CACHE_DIR=C:\\Users\\ContainerUser\\Documents\\cache\\uvcache',
509511
"TOX_UV_PATH=${env.WORKSPACE}\\venv\\Scripts\\uv.exe",
512+
"TRIPWIRE_SAMPLE_FILES=${WORKSPACE}\\samples"
510513
]){
511514
bat """python -m venv venv
512515
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
513516
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
514517
"""
518+
unstash 'SAMPLE_FILES'
515519
def attempt = 0
516520
retry(2){
517521
attempt += 1
@@ -531,7 +535,8 @@ pipeline {
531535
./venv/bin/pip install --disable-pip-version-check uv
532536
./venv/bin/uv python install cpython-${entry.PYTHON_VERSION}
533537
"""
534-
withEnv(["TOX_UV_PATH=${env.WORKSPACE}/venv/bin/uv"]){
538+
withEnv(["TOX_UV_PATH=${env.WORKSPACE}/venv/bin/uv", "TRIPWIRE_SAMPLE_FILES=${WORKSPACE}/samples"]){
539+
unstash 'SAMPLE_FILES'
535540
def attempt = 0
536541
retry(2){
537542
attempt += 1
@@ -548,7 +553,8 @@ pipeline {
548553
.\\venv\\Scripts\\pip install --disable-pip-version-check uv
549554
.\\venv\\Scripts\\uv python install cpython-${entry.PYTHON_VERSION}
550555
"""
551-
withEnv(["TOX_UV_PATH=${env.WORKSPACE}\\venv\\Scripts\\uv.exe"]){
556+
withEnv(["TOX_UV_PATH=${env.WORKSPACE}\\venv\\Scripts\\uv.exe", "TRIPWIRE_SAMPLE_FILES=${WORKSPACE}/samples"]){
557+
unstash 'SAMPLE_FILES'
552558
def attempt = 0
553559
retry(2){
554560
attempt += 1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ envlist = ["3.11", "3.12", "3.13"]
9595
description = "Run test under {base_python}"
9696
commands = [["{env_bin_dir}{/}pytest"]]
9797
dependency_groups = ['test']
98+
pass_env = ["TRIPWIRE_SAMPLE_FILES"]
9899

99100
[tool.tox.env.type-checking]
100101
description = "Run mypy type checking"

0 commit comments

Comments
 (0)