Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 5dbca79

Browse files
authored
[CI] Add nightly test (#1557)
* add nightly test * reinstall mxnet-cu102 from dist.mxnet.io * change schedule time to 12:00 AM UTC * update time
1 parent e52967c commit 5dbca79

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/nightly-test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: nightly test
2+
3+
on:
4+
schedule:
5+
- cron: '30 23 * * *' # At UTC 23:30, everyday, use https://crontab.guru/
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
unittest:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: [ '3.7' ]
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Install Other Dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install boto3
26+
27+
- name: Configure AWS Credentials
28+
uses: aws-actions/configure-aws-credentials@v1
29+
with:
30+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
31+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
32+
aws-region: us-east-1
33+
34+
- name: Test GluonNLP on MXNet nightly realse
35+
run: |
36+
echo "Start submitting job"
37+
python ./tools/batch/submit-job.py --region us-east-1 \
38+
--job-type g4dn.4x \
39+
--name GluonNLP-Nightly-Test \
40+
--source-ref ${{ github.ref }} \
41+
--work-dir . \
42+
--remote https://github.com/${{ github.repository }} \
43+
--command "python3 -m pip install pytest-forked \
44+
&& python3 -m pip install -U --pre "mxnet-cu102>=2.0.0b20210418" -f https://dist.mxnet.io/python/cu102 \
45+
&& python3 -m pytest --forked --durations=50 --device="cpu" --device="gpu" --runslow ./tests/" \
46+
--wait | tee batch_job.log
47+
48+
- name: Upload Cloud Watch Log
49+
if: ${{ failure() || success() }}
50+
uses: actions/upload-artifact@v2
51+
with:
52+
name: Test_Log
53+
path: ./batch_job.log

0 commit comments

Comments
 (0)