kopia lustrzana https://github.com/bellingcat/auto-archiver
Merge pull request #276 from bellingcat/actions_updates
Only run 'download' actions once core completes + re-add `ubuntu-latest` to matrixpull/271/head
commit
fbf51f61b9
|
@ -20,8 +20,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.10", "3.11", "3.12"]
|
python-version: ["3.10", "3.11", "3.12"]
|
||||||
os: [ubuntu-22.04]
|
os: [ubuntu-22.04, ubuntu-latest]
|
||||||
#TODO: re-enable ubuntu-latest, this is disabled as oscrypto cannot be pinned to github commit and pushed to pypi
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./
|
working-directory: ./
|
||||||
|
|
|
@ -1,15 +1,23 @@
|
||||||
name: Download Tests
|
name: Download Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Schedule this workflow to run every Monday at 14:35 UTC
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '35 14 * * 1'
|
- cron: '35 14 * * 1'
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
# For PRs, run the tests-core workflow first
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Core Tests"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- src/**
|
- src/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
# Only run if the triggering workflow (tests-core) succeeded
|
||||||
|
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -21,6 +29,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
|
||||||
|
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
run: pipx install poetry
|
run: pipx install poetry
|
||||||
|
|
|
@ -214,11 +214,8 @@ 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 deps:
|
for dep in filter(lambda d: len(d.strip()), deps):
|
||||||
if not len(dep):
|
if not check(dep.strip()):
|
||||||
# clear out any empty strings that a user may have erroneously added
|
|
||||||
continue
|
|
||||||
if not check(dep):
|
|
||||||
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. \
|
||||||
Have you installed the required dependencies for the '{self.name}' module? See the documentation for more information."
|
Have you installed the required dependencies for the '{self.name}' module? See the documentation for more information."
|
||||||
|
|
Ładowanie…
Reference in New Issue