forked from HorizonRobotics/alf
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 913 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: CI
on: [push, pull_request_target]
jobs:
build:
runs-on: ubuntu-18.04
container:
image: horizonrobotics/alf:0.0.6-pytorch1.8-python3.7
# always run on push events, but only run on pull_request_target events
# when the pull requests are from fork repositories; for pull requests
# within the same repository, the push event is sufficient
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository)
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: check code style
run: |
./.ci-cd/build.sh check_style
- name: run unittest
run: |
PYTHONPATH=`pwd` ./.ci-cd/build.sh test