Skip to content

Commit 03b12b6

Browse files
committed
cicd: moved install steps into matrix to avoid issues with caching
1 parent 80b8482 commit 03b12b6

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

.github/workflows/deploy-agent.yml

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,6 @@ jobs:
3030
echo "agents=$agents" >> "$GITHUB_OUTPUT"
3131
echo "Found agents: $agents"
3232
33-
- name: Set up Python
34-
uses: actions/setup-python@v5
35-
with:
36-
python-version: "3.12"
37-
38-
- name: Install uv
39-
run: |
40-
curl -LsSf https://astral.sh/uv/install.sh | sh
41-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
42-
43-
- name: Install dependencies
44-
run: |
45-
uv sync
46-
47-
- name: Cache uv environment
48-
uses: actions/cache/save@v4
49-
with:
50-
path: |
51-
.venv
52-
~/.cargo/bin/uv
53-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
54-
5533
deploy:
5634
needs: setup
5735
# Loads the secrets from the dev environment from the repository settings
@@ -76,21 +54,15 @@ jobs:
7654
with:
7755
python-version: "3.12"
7856

79-
- name: Restore uv environment
80-
uses: actions/cache/restore@v4
81-
with:
82-
path: |
83-
.venv
84-
~/.cargo/bin/uv
85-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
86-
87-
- name: Install or restore uv
57+
- name: Install uv
8858
run: |
89-
if [ ! -f "$HOME/.cargo/bin/uv" ]; then
90-
curl -LsSf https://astral.sh/uv/install.sh | sh
91-
fi
59+
curl -LsSf https://astral.sh/uv/install.sh | sh
9260
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
9361
62+
- name: Install dependencies
63+
run: |
64+
uv sync
65+
9466
- name: Configure AWS credentials
9567
uses: aws-actions/configure-aws-credentials@v5
9668
with:

0 commit comments

Comments
 (0)