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:
|
2024-03-26 11:53:07 +03:00
|
|
|
branch: [master, v4]
|
2022-05-20 16:46:30 +03:00
|
|
|
if: github.repository_owner == 'explosion'
|
2022-02-08 12:05:35 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-10 14:06:30 +03:00
|
|
|
- name: Checkout
|
2022-11-02 17:36:30 +03:00
|
|
|
uses: actions/checkout@v3
|
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-11-02 17:36:30 +03:00
|
|
|
echo run_tests=true >> $GITHUB_OUTPUT
|
2022-02-08 12:05:35 +03:00
|
|
|
else
|
2022-11-02 17:36:30 +03:00
|
|
|
echo run_tests=false >> $GITHUB_OUTPUT
|
2022-02-08 12:05:35 +03:00
|
|
|
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 }}
|