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