Skip to content

test ut

test ut #57

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / DeePTB tests.

Invalid workflow file

The workflow is not valid. .github/workflows/unit_test.yml (Line: 14, Col: 16): Unexpected symbol: '1.outputs.test'. Located at position 7 within expression: steps.1.outputs.test .github/workflows/unit_test.yml (Line: 15, Col: 16): Unexpected symbol: '2'. Located at position 7 within expression: steps.2 DeePTB.outputs.test
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/