update unit test #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DeePTB tests. | |
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: self-hosted | |
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@v3 | |
with: | |
ref: "refs/pull/${{ github.event.number }}/merge" | |
- name: Install DeePTB & Run Test | |
id: s2 | |
run: | | |
exec bash && \ | |
conda activate deeptb && \ | |
pip install . && \ | |
pip install pytest && \ | |
pytest ./dptb/tests/ | |
job2: | |
runs-on: self-hosted | |
needs: build | |
steps: | |
- env: | |
OUTPUT2: ${{needs.build.outputs.output2}} | |
OUTPUT3: ${{needs.build.outputs.output3}} | |
run: echo "$OUTPUT1 $OUTPUT2" |