Add tests to Docker (#993)

This commit is contained in:
Hamel Husain
2023-12-22 06:37:20 -08:00
committed by GitHub
parent 1ffa3866f2
commit 2e61dc3180
2 changed files with 20 additions and 4 deletions

View File

@@ -25,6 +25,9 @@ RUN if [ "$AXOLOTL_EXTRAS" != "" ] ; then \
pip install -e .[deepspeed,flash-attn]; \
fi
# So we can test the Docker image
RUN pip install pytest
# fix so that git fetch/pull from remote works
RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git config --get remote.origin.fetch