File tree Expand file tree Collapse file tree 3 files changed +79
-0
lines changed
Expand file tree Collapse file tree 3 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 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"
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'
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments