mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-23 15:02:46 +03:00
Fix the date command and the matrix failure mode (#10254)
This commit is contained in:
parent
ee662ec381
commit
2d6cabb23c
1
.github/workflows/gputests.yml
vendored
1
.github/workflows/gputests.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
weekly-gputests:
|
weekly-gputests:
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
branch: [master, develop, v4]
|
branch: [master, develop, v4]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
5
.github/workflows/slowtests.yml
vendored
5
.github/workflows/slowtests.yml
vendored
|
@ -7,15 +7,18 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
daily-slowtests:
|
daily-slowtests:
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
branch: [master, develop, v4]
|
branch: [master, develop, v4]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
- name: Get commits from past 24 hours
|
- name: Get commits from past 24 hours
|
||||||
id: check_commits
|
id: check_commits
|
||||||
run: |
|
run: |
|
||||||
today=$(date '+%Y-%m-%d %H:%M:%S')
|
today=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
yesterday=$(date -v-1d '+%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
|
if git log --after=$yesterday --before=$today | grep commit ; then
|
||||||
echo "::set-output name=run_tests::true"
|
echo "::set-output name=run_tests::true"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user