mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
33 lines
1020 B
YAML
33 lines
1020 B
YAML
|
on:
|
||
|
schedule:
|
||
|
- cron: '0 0 * * *'
|
||
|
|
||
|
jobs:
|
||
|
daily-slowtests:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
branch: [master, develop, v4]
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Get commits from past 24 hours
|
||
|
id: check_commits
|
||
|
run: |
|
||
|
today=$(date '+%Y-%m-%d %H:%M:%S')
|
||
|
yesterday=$(date -v-1d '+%Y-%m-%d %H:%M:%S')
|
||
|
if git log --after=$yesterday --before=$today | grep commit ; then
|
||
|
echo "::set-output name=run_tests::true"
|
||
|
else
|
||
|
echo "::set-output name=run_tests::false"
|
||
|
fi
|
||
|
|
||
|
- name: Trigger buildkite build
|
||
|
needs: check_commits
|
||
|
if: needs.check_commits.outputs.run_tests == 'true'
|
||
|
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"
|
||
|
secrets:
|
||
|
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_SECRET }}
|