Skip to content

Commit 1d27e21

Browse files
authored
Update UV action in CI, set project dev status to report on pypi (#591)
* ci: user warnet-hosted k8s-log-collector script * ci: use uv action, extract versions to env * project: set dev status and audience
1 parent bfecfe0 commit 1d27e21

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- main
88

99
env:
10-
UV_SYSTEM_PYTHON: 1
10+
PYTHON_VERSION: "3.12"
11+
STERN_VERSION: "1.30.0"
1112

1213
jobs:
1314

@@ -22,7 +23,11 @@ jobs:
2223
runs-on: ubuntu-latest
2324
steps:
2425
- 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
2631
- run: uvx ruff format . --check
2732

2833
build-image:
@@ -78,7 +83,13 @@ jobs:
7883
with:
7984
name: commander
8085
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
8293
- name: Install project
8394
run: uv sync --all-extras --dev
8495
- name: Install commander image
@@ -95,14 +106,13 @@ jobs:
95106
if: always()
96107
run: |
97108
echo "Installing stern..."
98-
STERN_VERSION="1.30.0"
99109
curl -Lo stern.tar.gz https://github.com/stern/stern/releases/download/v${STERN_VERSION}/stern_${STERN_VERSION}_linux_amd64.tar.gz
100110
tar zxvf stern.tar.gz
101111
chmod +x stern
102112
sudo mv stern /usr/local/bin/
103113
104114
# 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
106116
chmod +x k8s-log-collector.sh
107117
./k8s-log-collector.sh default
108118
- name: Upload log artifacts
@@ -120,7 +130,13 @@ jobs:
120130
- graph_test.py
121131
steps:
122132
- 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
124140
- name: Install project
125141
run: uv sync --all-extras --dev
126142
- name: Run tests

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ requires-python = ">=3.11"
77
keywords = ["bitcoin", "warnet"]
88
license = {text = "MIT"}
99
classifiers = [
10-
"Programming Language :: Python :: 3",
10+
"Development Status :: 4 - Beta",
11+
"Intended Audience :: Developers",
12+
"License :: OSI Approved :: MIT License",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
1115
]
1216

1317
dependencies = [

0 commit comments

Comments
 (0)