@@ -17,13 +17,18 @@ jobs:
1717 uses : actions/setup-python@v5
1818 with :
1919 python-version-file : .python-version
20- - name : Cache packages
20+ - name : Install pipx
21+ run : python3 -m pip install --user pipx && python3 -m pipx ensurepath
22+ - name : Install Poetry with pipx
23+ run : |
24+ pipx install poetry
25+ - name : Setup Python dependencies cache
2126 uses : actions/cache@v4
2227 with :
23- path : ~/.cache/pip
24- key : ${{ runner.os }}-py-3.9- ${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg ') }}
28+ path : ~/.cache/pypoetry
29+ key : poetry- ${{ hashFiles('**/poetry.lock ') }}
2530 restore-keys : |
26- ${{ runner.os }}-pip -
31+ poetry -
2732 - name : Install dependencies
2833 run : make setup
2934 - name : Lint
@@ -44,13 +49,18 @@ jobs:
4449 uses : actions/setup-python@v5
4550 with :
4651 python-version-file : .python-version
47- - name : Cache packages
52+ - name : Install pipx
53+ run : python3 -m pip install --user pipx && python3 -m pipx ensurepath
54+ - name : Install Poetry with pipx
55+ run : |
56+ pipx install poetry
57+ - name : Setup Python dependencies cache
4858 uses : actions/cache@v4
4959 with :
50- path : ~/.cache/pip
51- key : ${{ runner.os }}-py-3.9- ${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg ') }}
60+ path : ~/.cache/pypoetry
61+ key : poetry- ${{ hashFiles('**/poetry.lock ') }}
5262 restore-keys : |
53- ${{ runner.os }}-pip -
63+ poetry -
5464 - name : Install dependencies
5565 run : make setup
5666 - name : Run unit tests
@@ -91,15 +101,18 @@ jobs:
91101 uses : actions/setup-python@v5
92102 with :
93103 python-version-file : .python-version
94-
95- - name : Cache packages
104+ - name : Install pipx
105+ run : python3 -m pip install --user pipx && python3 -m pipx ensurepath
106+ - name : Install Poetry with pipx
107+ run : |
108+ pipx install poetry
109+ - name : Setup Python dependencies cache
96110 uses : actions/cache@v4
97111 with :
98- path : ~/.cache/pip
99- key : ${{ runner.os }}-py-3.9- ${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg ') }}
112+ path : ~/.cache/pypoetry
113+ key : poetry- ${{ hashFiles('**/poetry.lock ') }}
100114 restore-keys : |
101- ${{ runner.os }}-pip-
102-
115+ poetry-
103116 - name : Install dependencies
104117 run : make setup
105118
@@ -128,6 +141,15 @@ jobs:
128141 - name : Run integration tests
129142 run : make test_integration
130143
144+ - name : Dump pod logs for debugging
145+ if : failure()
146+ run : |
147+ echo "Collecting logs from all pods:"
148+ kubectl --context minikube get pods -o name | while read -r pod; do
149+ echo "=== Logs for $pod ==="
150+ kubectl --context minikube logs "$pod" || true
151+ echo
152+ done
131153 - name : Upload coverage to Codecov
132154 uses : codecov/codecov-action@v3
133155 with :
@@ -149,13 +171,18 @@ jobs:
149171 uses : actions/setup-python@v5
150172 with :
151173 python-version-file : .python-version
152- - name : Cache packages
174+ - name : Install pipx
175+ run : python3 -m pip install --user pipx && python3 -m pipx ensurepath
176+ - name : Install Poetry with pipx
177+ run : |
178+ pipx install poetry
179+ - name : Setup Python dependencies cache
153180 uses : actions/cache@v4
154181 with :
155- path : ~/.cache/pip
156- key : ${{ runner.os }}-py-3.9- ${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg ') }}
182+ path : ~/.cache/pypoetry
183+ key : poetry- ${{ hashFiles('**/poetry.lock ') }}
157184 restore-keys : |
158- ${{ runner.os }}-pip -
185+ poetry -
159186 - name : Install dependencies
160187 run : make setup
161188 - name : Build Docker image
0 commit comments