pull/700/head
Patrick Devaney 7 days ago
parent 4a9e3c00ad
commit ba14c5c6d4

@ -36,7 +36,6 @@ jobs:
- name: Build Docker image - name: Build Docker image
id: build_image id: build_image
run: | run: |
docker build -t test-runner:swarm-testing ./tests
IMAGE_TAG="test-runner:swarm-testing-${GITHUB_SHA}" IMAGE_TAG="test-runner:swarm-testing-${GITHUB_SHA}"
docker build -t $IMAGE_TAG . docker build -t $IMAGE_TAG .
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
@ -47,8 +46,8 @@ jobs:
mkdir -p ${{ github.workspace }}/logs mkdir -p ${{ github.workspace }}/logs
chmod -R 777 ${{ github.workspace }}/logs chmod -R 777 ${{ github.workspace }}/logs
# Run Docker container with OpenAI API Key and capture test logs # Run Docker container with OpenAI API Key securely and capture test logs
- name: Run Docker container with OpenAI API Key and tests - name: Run Docker container with OpenAI API Key
run: | run: |
docker run -e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \ docker run -e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
-v ${{ github.workspace }}/logs:/usr/src/app/logs \ -v ${{ github.workspace }}/logs:/usr/src/app/logs \

@ -8,10 +8,10 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_DEFAULT_TIMEOUT=100 PIP_DEFAULT_TIMEOUT=100
# Set the working directory to the root of the project # Set the working directory to the root of the project (relative to pyproject.toml)
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Copy the entire project into the container (including pyproject.toml) # Copy the entire project into the container
COPY . . COPY . .
# Install Poetry # Install Poetry

Loading…
Cancel
Save