Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,15 @@ jobs:

- name: Set up environment
run: |
set +e
source ${ASCEND_HOME_PATH}/bin/setenv.bash
set -e
python3 -m venv --system-site-packages .venv
source .venv/bin/activate
pip install --upgrade pip
pip install '.[test]'

- name: Run Python hardware unit tests (a5)
run: |
set +e
source .venv/bin/activate
source ${ASCEND_HOME_PATH}/bin/setenv.bash
set -e
DEVICE_LIST=$(python -c "s,e='${DEVICE_RANGE}'.split('-'); print(','.join(str(i) for i in range(int(s),int(e)+1)))")
Expand All @@ -422,6 +423,7 @@ jobs:
- name: Build and run C++ hardware unit tests (a5)
run: |
set +e
source .venv/bin/activate
source ${ASCEND_HOME_PATH}/bin/setenv.bash
set -e
cmake -B tests/ut/cpp/build -S tests/ut/cpp -DSIMPLER_ENABLE_HARDWARE_TESTS=ON
Expand All @@ -448,15 +450,15 @@ jobs:

- name: Set up environment
run: |
set +e
source ${ASCEND_HOME_PATH}/bin/setenv.bash
set -e
python3 -m venv --system-site-packages .venv
source .venv/bin/activate
pip install --upgrade pip
pip install '.[test]'

- name: Run pytest scene tests (a5)
run: |
set +e
source .venv/bin/activate
source ${ASCEND_HOME_PATH}/bin/setenv.bash
set -e
DEVICE_LIST=$(python -c "s,e='${DEVICE_RANGE}'.split('-'); print(','.join(str(i) for i in range(int(s),int(e)+1)))")
Expand Down
Loading