2022-02-09 10:21:20 +00:00
|
|
|
name: Daily slow tests
|
|
|
|
|
2022-02-08 09:05:35 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
daily-slowtests:
|
|
|
|
strategy:
|
2022-02-10 11:06:30 +00:00
|
|
|
fail-fast: false
|
2022-02-08 09:05:35 +00:00
|
|
|
matrix:
|
2022-02-16 14:43:36 +00:00
|
|
|
branch: [master, v4]
|
2022-02-08 09:05:35 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-10 11:06:30 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2022-02-16 14:39:42 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branch }}
|
2022-02-08 09:05:35 +00:00
|
|
|
- name: Get commits from past 24 hours
|
|
|
|
id: check_commits
|
|
|
|
run: |
|
|
|
|
today=$(date '+%Y-%m-%d %H:%M:%S')
|
2022-02-10 11:06:30 +00:00
|
|
|
yesterday=$(date -d "yesterday" '+%Y-%m-%d %H:%M:%S')
|
2022-02-15 13:18:36 +00:00
|
|
|
if git log --after="$yesterday" --before="$today" | grep commit ; then
|
2022-02-08 09:05:35 +00:00
|
|
|
echo "::set-output name=run_tests::true"
|
|
|
|
else
|
|
|
|
echo "::set-output name=run_tests::false"
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Trigger buildkite build
|
2022-02-09 10:21:20 +00:00
|
|
|
if: steps.check_commits.outputs.run_tests == 'true'
|
2022-02-08 09:05:35 +00: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 }}
|