Skip to content

Commit ad01184

Browse files
committed
Rename workflow file to nightly.yml for clarity
1 parent d431d63 commit ad01184

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,44 @@ jobs:
8989
with:
9090
image-ref: ghcr.io/${{ github.repository_owner }}/python-container-builder:latest
9191
format: 'table'
92-
severity: 'CRITICAL,HIGH'
92+
severity: 'CRITICAL,HIGH'
93+
94+
test:
95+
name: Test Images
96+
runs-on: ubuntu-latest
97+
needs: nightly
98+
strategy:
99+
matrix:
100+
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
101+
steps:
102+
- name: Test Python version
103+
run: |
104+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} python --version
105+
106+
- name: Test uv is installed
107+
run: |
108+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} uv --version
109+
110+
- name: Test poetry is installed
111+
run: |
112+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} poetry --version
113+
114+
- name: Test pipenv is installed
115+
run: |
116+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} pipenv --version
117+
118+
- name: Test pdm is installed
119+
run: |
120+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} pdm --version
121+
122+
- name: Test venv is created
123+
run: |
124+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} sh -c 'test -d /.venv && echo "venv exists"'
125+
126+
- name: Test package installation with uv
127+
run: |
128+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} sh -c 'uv pip install requests && python -c "import requests; print(f\"requests {requests.__version__} imported successfully\")"'
129+
130+
- name: Test package installation with pip
131+
run: |
132+
docker run --rm ghcr.io/${{ github.repository_owner }}/python-container-builder:${{ matrix.python_version }} sh -c 'pip install click && python -c "import click; print(f\"click {click.__version__} imported successfully\")"'

0 commit comments

Comments
 (0)