1515permissions :
1616 contents : read
1717
18- env :
19- PACKAGE_NAME : create-awesome-python-app
20- DOCKER_IMAGE : ulisesjeremias/create-awesome-python-app
21-
2218concurrency :
2319 group : smoke-distribution
2420 cancel-in-progress : true
@@ -32,38 +28,27 @@ jobs:
3228 - name : Smoke uvx
3329 run : |
3430 set -euo pipefail
35- VERSION="$(uvx "$PACKAGE_NAME@latest" --version 2>&1)"
36- echo "uvx version: $VERSION"
37- echo "$VERSION" | grep -qE '[0-9]+\.[0-9]+\.[0-9]+' || {
38- echo "::error::Unexpected uvx version output: $VERSION"
39- exit 1
40- }
41-
42- uvx "$PACKAGE_NAME@latest" --help > /tmp/cpa-help.txt
43- test -s /tmp/cpa-help.txt
44- python3 -c "from pathlib import Path; print('\n'.join(Path('/tmp/cpa-help.txt').read_text().splitlines()[:5]))"
31+ uvx create-awesome-python-app@latest --version
32+ uvx create-awesome-python-app@latest --help | head -5
4533
4634 docker :
4735 name : Docker Hub
4836 runs-on : ubuntu-latest
4937 steps :
5038 - name : Pull image
51- run : docker pull "$DOCKER_IMAGE :latest"
39+ run : docker pull ulisesjeremias/create-awesome-python-app :latest
5240
5341 - name : Verify --version
5442 run : |
5543 VERSION=$(docker run --rm ulisesjeremias/create-awesome-python-app:latest --version 2>&1)
5644 echo "docker version: $VERSION"
57- echo "$VERSION" | grep -qE '[0-9]+\.[0-9]+\.[0-9]+' || {
45+ echo "$VERSION" | grep -qE '^ [0-9]+\.[0-9]+\.[0-9]+$ ' || {
5846 echo "::error::Unexpected version output: $VERSION"
5947 exit 1
6048 }
6149
6250 - name : Verify --help
63- run : |
64- docker run --rm "$DOCKER_IMAGE:latest" --help > /tmp/cpa-help.txt
65- test -s /tmp/cpa-help.txt
66- python3 -c "from pathlib import Path; print('\n'.join(Path('/tmp/cpa-help.txt').read_text().splitlines()[:5]))"
51+ run : docker run --rm ulisesjeremias/create-awesome-python-app:latest --help | head -5
6752
6853 homebrew :
6954 name : Homebrew (Create-Python-App/tap)
@@ -79,16 +64,13 @@ jobs:
7964 run : |
8065 VERSION=$(create-awesome-python-app --version 2>&1)
8166 echo "homebrew version: $VERSION"
82- echo "$VERSION" | grep -qE '[0-9]+\.[0-9]+\.[0-9]+' || {
67+ echo "$VERSION" | grep -qE '^ [0-9]+\.[0-9]+\.[0-9]+$ ' || {
8368 echo "::error::Unexpected version output: $VERSION"
8469 exit 1
8570 }
8671
8772 - name : Verify --help
88- run : |
89- create-awesome-python-app --help > /tmp/cpa-help.txt
90- test -s /tmp/cpa-help.txt
91- python3 -c "from pathlib import Path; print('\n'.join(Path('/tmp/cpa-help.txt').read_text().splitlines()[:5]))"
73+ run : create-awesome-python-app --help | head -5
9274
9375 aur :
9476 name : AUR (archlinux container)
@@ -123,13 +105,11 @@ jobs:
123105 su builder -c "
124106 VERSION=\$(create-awesome-python-app --version 2>&1)
125107 echo \"aur version: \$VERSION\"
126- echo \"\$VERSION\" | grep -qE '[0-9]+\.[0-9]+\.[0-9]+' || exit 1
108+ echo \"\$VERSION\" | grep -qE '^ [0-9]+\.[0-9]+\.[0-9]+\$ ' || exit 1
127109 "
128110
129111 - name : Verify --help
130- run : |
131- su builder -c "create-awesome-python-app --help > /tmp/cpa-help.txt && test -s /tmp/cpa-help.txt"
132- python3 -c "from pathlib import Path; print('\n'.join(Path('/tmp/cpa-help.txt').read_text().splitlines()[:5]))"
112+ run : su builder -c "create-awesome-python-app --help | head -5"
133113
134114 versions :
135115 name : Cross-check published versions
@@ -147,9 +127,7 @@ jobs:
147127 )
148128
149129 DOCKER=$(
150- docker run --rm "$DOCKER_IMAGE:latest" --version 2>&1 \
151- | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \
152- | head -1 \
130+ docker run --rm ulisesjeremias/create-awesome-python-app:latest --version 2>&1 \
153131 || echo "unavailable"
154132 )
155133
@@ -174,17 +152,6 @@ jobs:
174152 echo " homebrew: $HOMEBREW"
175153 echo " aur: $AUR"
176154
177- {
178- echo "## Distribution smoke versions"
179- echo
180- echo "| Channel | Version |"
181- echo "|---------|---------|"
182- echo "| PyPI | $PYPI |"
183- echo "| Docker | $DOCKER |"
184- echo "| Homebrew | $HOMEBREW |"
185- echo "| AUR | $AUR |"
186- } >> "$GITHUB_STEP_SUMMARY"
187-
188155 for CHANNEL_VER in "$DOCKER" "$HOMEBREW"; do
189156 if [ "$CHANNEL_VER" != "unavailable" ] && [ "$CHANNEL_VER" != "$PYPI" ]; then
190157 echo "::warning::Version mismatch vs pypi=$PYPI: $CHANNEL_VER"
0 commit comments