mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +03:00
2fb7e4dc74
* More version updates for github action deprecation warnings * fix the deprecated set-output commands * bump explosion-bot to run on ubuntu-latest
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Daily slow tests
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
daily-slowtests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branch: [master, v4]
|
|
if: github.repository_owner == 'explosion'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ matrix.branch }}
|
|
- name: Get commits from past 24 hours
|
|
id: check_commits
|
|
run: |
|
|
today=$(date '+%Y-%m-%d %H:%M:%S')
|
|
yesterday=$(date -d "yesterday" '+%Y-%m-%d %H:%M:%S')
|
|
if git log --after="$yesterday" --before="$today" | grep commit ; then
|
|
echo run_tests=true >> $GITHUB_OUTPUT
|
|
else
|
|
echo run_tests=false >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Trigger buildkite build
|
|
if: steps.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"
|
|
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_SECRET }}
|