Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ GEMINI.local.md
# Cache
__pycache__
.pytest_cache
.pytest-tmp
.ruff_cache
.ty_cache
.uv-cache
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ uv run pytest \
cmd = """
uv run pytest \
--numprocesses=${TESTS_CONCURRENCY:-auto} \
--basetemp=./.pytest-tmp \
tests/e2e/project_template
"""

Expand Down
10 changes: 9 additions & 1 deletion tests/e2e/project_template/test_static_crawlers_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ async def test_static_crawler_actor_at_apify(
)
subprocess.run(['apify', 'init', '-y', actor_name], capture_output=True, check=True, cwd=tmp_path / actor_name) # noqa: ASYNC221, S603, S607

build_process = subprocess.run(['apify', 'push'], capture_output=True, check=False, cwd=tmp_path / actor_name) # noqa: ASYNC221, S607
build_process = subprocess.run( # noqa: ASYNC221
['apify', 'push'], # noqa: S607
capture_output=True,
check=False,
cwd=tmp_path / actor_name,
# Prevent git from walking up into the surrounding project's .git/ when running under
# a basetemp inside the repo (see --basetemp in the e2e-templates-tests poe task).
env={**os.environ, 'GIT_CEILING_DIRECTORIES': str(tmp_path)},
)
# Get actor ID from build log
actor_id_regexp = re.compile(r'https:\/\/console\.apify\.com\/actors\/(.*)#\/builds\/\d*\.\d*\.\d*')

Expand Down
Loading