test ut #57
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: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
if: github.repository_owner == 'deepmodeling' | ||
container: ghcr.io/deepmodeling/deeptb:latest | ||
outputs: | ||
output1: ${{ steps.1.outputs.test }} | ||
Check failure on line 14 in .github/workflows/unit_test.yml GitHub Actions / DeePTB tests.Invalid workflow file
|
||
output2: ${{ steps.2 DeePTB.outputs.test }} | ||
output3: ${{ steps.3.outputs.test }} | ||
steps: | ||
- name: Checkout | ||
id: 1 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "refs/pull/${{ github.event.number }}/merge" | ||
- name: Install DeePTB | ||
id: 2 | ||
run: | | ||
exec bash | ||
ls >> "$GITHUB_OUTPUT" | ||
conda activate deeptb | ||
pip install . >> "$GITHUB_OUTPUT" | ||
pip install pytest | ||
- name: Run Test | ||
id: 3 | ||
run: | | ||
exec bash | ||
pytest ./dptb/tests/ |