-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (35 loc) · 960 Bytes
/
unit_test.yml
File metadata and controls
39 lines (35 loc) · 960 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
name: DeePTB tests.
on:
pull_request:
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.s1.outputs.test }}
output2: ${{ steps.s2.outputs.test }}
if: github.repository_owner == 'deepmodeling'
container: ghcr.io/deepmodeling/deeptb:latest
steps:
- name: Checkout
id: s1
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Add safe directory
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Install DeePTB & Run Test
id: s2
run: |
bash ut.sh
job2:
runs-on: ubuntu-latest
needs: build
steps:
- env:
OUTPUT2: ${{needs.build.outputs.output2}}
OUTPUT3: ${{needs.build.outputs.output3}}
run: echo "$OUTPUT1 $OUTPUT2"