7
7
- main
8
8
9
9
env :
10
- UV_SYSTEM_PYTHON : 1
10
+ PYTHON_VERSION : " 3.12"
11
+ STERN_VERSION : " 1.30.0"
11
12
12
13
jobs :
13
14
22
23
runs-on : ubuntu-latest
23
24
steps :
24
25
- uses : actions/checkout@v4
25
- - uses : eifinger/setup-uv@v1
26
+ - name : Install the latest version of uv
27
+ uses : astral-sh/setup-uv@v2
28
+ with :
29
+ version : " latest"
30
+ enable-cache : true
26
31
- run : uvx ruff format . --check
27
32
28
33
build-image :
78
83
with :
79
84
name : commander
80
85
path : /tmp
81
- - uses : eifinger/setup-uv@v1
86
+ - name : Install the latest version of uv
87
+ uses : astral-sh/setup-uv@v2
88
+ with :
89
+ version : " latest"
90
+ enable-cache : true
91
+ - name : Install Python
92
+ run : uv python install $PYTHON_VERSION
82
93
- name : Install project
83
94
run : uv sync --all-extras --dev
84
95
- name : Install commander image
@@ -95,14 +106,13 @@ jobs:
95
106
if : always()
96
107
run : |
97
108
echo "Installing stern..."
98
- STERN_VERSION="1.30.0"
99
109
curl -Lo stern.tar.gz https://github.com/stern/stern/releases/download/v${STERN_VERSION}/stern_${STERN_VERSION}_linux_amd64.tar.gz
100
110
tar zxvf stern.tar.gz
101
111
chmod +x stern
102
112
sudo mv stern /usr/local/bin/
103
113
104
114
# Run script
105
- curl -O https://raw.githubusercontent.com/willcl-ark /warnet/main/resources/scripts/k8s-log-collector.sh
115
+ curl -O https://raw.githubusercontent.com/bitcoin-dev-project /warnet/main/resources/scripts/k8s-log-collector.sh
106
116
chmod +x k8s-log-collector.sh
107
117
./k8s-log-collector.sh default
108
118
- name : Upload log artifacts
@@ -120,7 +130,13 @@ jobs:
120
130
- graph_test.py
121
131
steps :
122
132
- uses : actions/checkout@v4
123
- - uses : eifinger/setup-uv@v1
133
+ - name : Install the latest version of uv
134
+ uses : astral-sh/setup-uv@v2
135
+ with :
136
+ version : " latest"
137
+ enable-cache : true
138
+ - name : Install Python
139
+ run : uv python install $PYTHON_VERSION
124
140
- name : Install project
125
141
run : uv sync --all-extras --dev
126
142
- name : Run tests
0 commit comments