Skip to content

Commit

Permalink
Update CI docker and test script
Browse files Browse the repository at this point in the history
  • Loading branch information
LPanosTT committed Oct 29, 2024
1 parent c8f2ac3 commit 6aade23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG FROM_TAG=${GIT_SHA:-latest}
FROM ghcr.io/tenstorrent/tt-torch/tt-torch-base-ubuntu-22-04:${FROM_TAG} AS ci-build
SHELL ["/bin/bash", "-c"]

RUN apt-get install python3.11-dev python3.11-venv

# Create a directory for the build and toolchain
ARG GIT_SHA
ENV PROJECT_NAME=tt-torch
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ jobs:
# - name: Configure CMake
# shell: bash
# run: |
# source venv/activate
# source env/activate
# cmake -G Ninja \
# -B ${{ steps.strings.outputs.build-output-dir }} \
# -S ${{ steps.strings.outputs.work-dir }}

# - name: Build
# shell: bash
# run: |
# source venv/activate
# source env/activate
# cmake --build ${{ steps.strings.outputs.build-output-dir }}
# cmake --install ${{ steps.strings.outputs.build-output-dir }}

Expand Down Expand Up @@ -127,19 +127,19 @@ jobs:
- name: Configure CMake
shell: bash
run: |
source venv/activate
source env/activate
cmake -G Ninja \
-B ${{ steps.strings.outputs.build-output-dir }} \
-S ${{ steps.strings.outputs.work-dir }}
- name: Build
shell: bash
run: |
source venv/activate
source env/activate
cmake --build ${{ steps.strings.outputs.build-output-dir }}
cmake --install ${{ steps.strings.outputs.build-output-dir }}
- name: Run tests
shell: bash
run: |
export LD_LIBRARY_PATH="/opt/ttmlir-toolchain/lib/:${{ steps.strings.outputs.install-output-dir }}/lib:${LD_LIBRARY_PATH}"
source venv/activate
source env/activate
pytest -v tests/

0 comments on commit 6aade23

Please sign in to comment.