Skip to content

Commit

Permalink
test ut (#12)
Browse files Browse the repository at this point in the history
* test ut

* update unit_test

* update unit_test

* update unit_test

* update unit_test

* update unit_test

* update unit_test

* update unit_test

* update

* update unit_test

* update unit_test

* update unit_Test

* update unit_test

* update unit_test

* update unit_test

* update self-hosted runner

* update unit_test

* update unit_test

* test output

* update unit_test

* update unit_test

* update unit_test

* update

* update

* update

* update unit_test

* update why it does not work???

* update ut

* update unit_test

* update unit_test

* update unit_test

* update unit test

* update unit_test

* update unit_test

* update unit_test
  • Loading branch information
floatingCatty authored Sep 7, 2023
1 parent 9ab8b74 commit 2172d3b
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,40 @@ on:
push:
pull_request:

jobs:
jobs:
build:
runs-on: self-hosted
outputs:
output1: ${{ steps.s1.outputs.test }}
output2: ${{ steps.s2.outputs.test }}
output3: ${{ steps.s3.outputs.test }}
if: github.repository_owner == 'deepmodeling'
container: ghcr.io/deepmodeling/deeptb:latest
steps:
steps:
- name: Checkout
id: s1
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Install DeePTB
id: s2
run: |
exec bash
conda activate deeptb
pip install .
pip install pytest
- name: Run Test
id: s3
run: |
source $CONDA/bin/activate
exec bash
conda activate deeptb
pytest ./dptb/tests/
job2:
runs-on: self-hosted
needs: build
steps:
- env:
OUTPUT1: ${{needs.build.outputs.output1}}
OUTPUT2: ${{needs.build.outputs.output2}}
OUTPUT3: ${{needs.build.outputs.output3}}
run: echo "$OUTPUT1 $OUTPUT2 $OUTPUT3 ????"

0 comments on commit 2172d3b

Please sign in to comment.