2022-02-09 13:21:20 +03:00
|
|
|
name: Daily slow tests
|
|
|
|
|
2022-02-08 12:05:35 +03:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
daily-slowtests:
|
|
|
|
strategy:
|
2022-02-10 14:06:30 +03:00
|
|
|
fail-fast: false
|
2022-02-08 12:05:35 +03:00
|
|
|
matrix:
|
2022-02-16 17:43:36 +03:00
|
|
|
branch: [master, v4]
|
2022-02-08 12:05:35 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-10 14:06:30 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2022-02-16 17:39:42 +03:00
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branch }}
|
2022-02-08 12:05:35 +03:00
|
|
|
- name: Get commits from past 24 hours
|
|
|
|
id: check_commits
|
|
|
|
run: |
|
|
|
|
today=$(date '+%Y-%m-%d %H:%M:%S')
|
2022-02-10 14:06:30 +03:00
|
|
|
yesterday=$(date -d "yesterday" '+%Y-%m-%d %H:%M:%S')
|
2022-02-15 16:18:36 +03:00
|
|
|
if git log --after="$yesterday" --before="$today" | grep commit ; then
|
2022-02-08 12:05:35 +03:00
|
|
|
echo "::set-output name=run_tests::true"
|
|
|
|
else
|
|
|
|
echo "::set-output name=run_tests::false"
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Trigger buildkite build
|
2022-02-09 13:21:20 +03:00
|
|
|
if: steps.check_commits.outputs.run_tests == 'true'
|
2022-02-08 12:05:35 +03:00
|
|
|
uses: buildkite/trigger-pipeline-action@v1.2.0
|
|
|
|
env:
|
|
|
|
PIPELINE: explosion-ai/spacy-slow-tests
|
|
|
|
BRANCH: ${{ matrix.branch }}
|
|
|
|
MESSAGE: ":github: Daily slow tests - triggered from a GitHub Action"
|
|
|
|
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_SECRET }}
|