Add github actions for slow and gpu tests (#10225)

* Add github actions for slow and gpu tests

* change weekly GPU tests to also run slow tests, and change the time

* only run the tests if there were commits in the past day
This commit is contained in:
Ryn Daniels 2022-02-08 11:05:35 +02:00 committed by GitHub
parent deb143fa70
commit f939da0bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

19
.github/workflows/gputests.yml vendored Normal file
View File

@ -0,0 +1,19 @@
on:
schedule:
- cron: '0 1 * * MON'
jobs:
weekly-gputests:
strategy:
matrix:
branch: [master, develop, v4]
runs-on: ubuntu-latest
steps:
- name: Trigger buildkite build
uses: buildkite/trigger-pipeline-action@v1.2.0
env:
PIPELINE: explosion-ai/spacy-slow-gpu-tests
BRANCH: ${{ matrix.branch }}
MESSAGE: ":github: Weekly GPU + slow tests - triggered from a GitHub Action"
secrets:
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_SECRET }}

32
.github/workflows/slowtests.yml vendored Normal file
View File

@ -0,0 +1,32 @@
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 }}