Skip to content

Commit 4dd2d95

Browse files
committed
LITE-33302 Fix bump action outdated write file
1 parent 82461b6 commit 4dd2d95

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

.github/workflows/bump.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
echo "has_updates=true" >> $GITHUB_OUTPUT
3535
echo "Outdated packages found:"
3636
cat outdated.txt
37+
38+
echo "outdated<<EOF" >> $GITHUB_OUTPUT
39+
cat outdated.txt >> $GITHUB_OUTPUT
40+
echo "EOF" >> $GITHUB_OUTPUT
3741
else
3842
echo "has_updates=false" >> $GITHUB_OUTPUT
3943
echo "No outdated packages found"
@@ -64,6 +68,8 @@ jobs:
6468
else
6569
echo "has_changes=true" >> $GITHUB_OUTPUT
6670
fi
71+
# Remove the temporary file so it is not included in the PR
72+
rm outdated.txt
6773
6874
- name: Create Pull Request
6975
if: steps.check-outdated.outputs.has_updates == 'true' && steps.check-changes.outputs.has_changes == 'true'

Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM python:3.10-slim
2+
3+
# Install system dependencies required for connect-cli and its plugins (e.g. reports)
4+
# Based on docs/linux_deps_install.md
5+
RUN apt-get update && apt-get install -y \
6+
build-essential \
7+
libcairo2 \
8+
libpango-1.0-0 \
9+
libpangocairo-1.0-0 \
10+
libgdk-pixbuf-2.0-0 \
11+
libffi-dev \
12+
shared-mime-info \
13+
git \
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
# Install Poetry
17+
RUN pip install poetry
18+
19+
# Set working directory
20+
WORKDIR /app
21+
22+
# Copy configuration files
23+
COPY pyproject.toml poetry.lock* README.md ./
24+
25+
# Configure poetry to create a virtual environment (default)
26+
# RUN poetry config virtualenvs.create false
27+
28+
# Install dependencies (including dev dependencies for pytest)
29+
RUN poetry install --no-root --no-interaction --no-ansi
30+
31+
# Copy the rest of the application
32+
COPY . .
33+
34+
# Install the project itself
35+
RUN poetry install --no-interaction --no-ansi
36+
37+
# Copy and setup simulation script
38+
COPY simulate_build.sh .
39+
RUN chmod +x simulate_build.sh
40+
41+
# Set the default command to run the simulation script
42+
CMD ["./simulate_build.sh"]

simulate_build.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "----------------------------------------------------------------------"
5+
echo "Checking for outdated packages..."
6+
echo "----------------------------------------------------------------------"
7+
poetry show --outdated || true
8+
9+
echo ""
10+
echo "----------------------------------------------------------------------"
11+
echo "Running Tests (pytest) - Initial State..."
12+
echo "----------------------------------------------------------------------"
13+
poetry run pytest -v
14+
15+
echo ""
16+
echo "----------------------------------------------------------------------"
17+
echo "Updating packages to latest allowed versions..."
18+
echo "----------------------------------------------------------------------"
19+
poetry update
20+
21+
echo ""
22+
echo "----------------------------------------------------------------------"
23+
echo "Running Linting (flake8)..."
24+
echo "----------------------------------------------------------------------"
25+
poetry run flake8
26+
27+
echo ""
28+
echo "----------------------------------------------------------------------"
29+
echo "Running Tests (pytest)..."
30+
echo "----------------------------------------------------------------------"
31+
poetry run pytest -v

0 commit comments

Comments
 (0)