Merge pull request #280 from bellingcat/download-tests

Download tests
This commit is contained in:
Patrick Robertson
2025-03-28 13:33:30 +04:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -10,9 +10,6 @@ on:
workflows: ["Core Tests"] workflows: ["Core Tests"]
types: types:
- completed - completed
branches: [main]
paths:
- src/**
jobs: jobs:
tests: tests:
@@ -30,7 +27,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }} # For PRs, use the head commit SHA from the triggering workflow
ref: ${{ github.event.workflow_run.head_sha || github.ref }}
# If PR is from a fork, we need fetch-depth: 0
fetch-depth: ${{ github.event.workflow_run.head_repository.fork && '0' || '1' }}
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pipx install poetry

View File

@@ -214,7 +214,7 @@ class LazyBaseModule:
# check external dependencies are installed # check external dependencies are installed
def check_deps(deps, check): def check_deps(deps, check):
for dep in filter(lambda d: len(d.strip()), deps): for dep in filter(lambda d: len(d.strip()) > 0, deps):
if not check(dep.strip()): if not check(dep.strip()):
logger.error( logger.error(
f"Module '{self.name}' requires external dependency '{dep}' which is not available/setup. \ f"Module '{self.name}' requires external dependency '{dep}' which is not available/setup. \