mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 13:48:28 +03:00
Revert downloads CI tests changes
It wasn't properly being triggered after the core tests. this reverts so that the download tests just run whatever
This commit is contained in:
18
.github/workflows/tests-download.yaml
vendored
18
.github/workflows/tests-download.yaml
vendored
@@ -1,20 +1,15 @@
|
|||||||
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:
|
||||||
# For PRs, run the tests-core workflow first
|
branches: [ main ]
|
||||||
workflow_run:
|
paths:
|
||||||
workflows: ["Core Tests"]
|
- src/**
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
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
|
||||||
@@ -26,11 +21,6 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user