From 328bc59170c05fd6283b603d337660d4b45ce4f5 Mon Sep 17 00:00:00 2001 From: willcl-ark Date: Thu, 12 Sep 2024 13:38:44 +0100 Subject: [PATCH 1/3] ci: user warnet-hosted k8s-log-collector script --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac678a67f..e6605eb47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,7 +102,7 @@ jobs: sudo mv stern /usr/local/bin/ # Run script - curl -O https://raw.githubusercontent.com/willcl-ark/warnet/main/resources/scripts/k8s-log-collector.sh + curl -O https://raw.githubusercontent.com/bitcoin-dev-project/warnet/main/resources/scripts/k8s-log-collector.sh chmod +x k8s-log-collector.sh ./k8s-log-collector.sh default - name: Upload log artifacts From 6ef86bcf7f8384e341d77bb17283319a31a90180 Mon Sep 17 00:00:00 2001 From: willcl-ark Date: Thu, 12 Sep 2024 13:39:22 +0100 Subject: [PATCH 2/3] ci: use uv action, extract versions to env --- .github/workflows/test.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6605eb47..c717bddd4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,8 @@ on: - main env: - UV_SYSTEM_PYTHON: 1 + PYTHON_VERSION: "3.12" + STERN_VERSION: "1.30.0" jobs: @@ -22,7 +23,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: eifinger/setup-uv@v1 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v2 + with: + version: "latest" + enable-cache: true - run: uvx ruff format . --check build-image: @@ -78,7 +83,13 @@ jobs: with: name: commander path: /tmp - - uses: eifinger/setup-uv@v1 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v2 + with: + version: "latest" + enable-cache: true + - name: Install Python + run: uv python install $PYTHON_VERSION - name: Install project run: uv sync --all-extras --dev - name: Install commander image @@ -95,7 +106,6 @@ jobs: if: always() run: | echo "Installing stern..." - STERN_VERSION="1.30.0" curl -Lo stern.tar.gz https://github.com/stern/stern/releases/download/v${STERN_VERSION}/stern_${STERN_VERSION}_linux_amd64.tar.gz tar zxvf stern.tar.gz chmod +x stern @@ -120,7 +130,13 @@ jobs: - graph_test.py steps: - uses: actions/checkout@v4 - - uses: eifinger/setup-uv@v1 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v2 + with: + version: "latest" + enable-cache: true + - name: Install Python + run: uv python install $PYTHON_VERSION - name: Install project run: uv sync --all-extras --dev - name: Run tests From 0d1d31522e0f3a473c4d4809bfd5740c86acf685 Mon Sep 17 00:00:00 2001 From: willcl-ark Date: Thu, 12 Sep 2024 13:48:58 +0100 Subject: [PATCH 3/3] project: set dev status and audience --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2b1849084..752d4cf25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,11 @@ requires-python = ">=3.11" keywords = ["bitcoin", "warnet"] license = {text = "MIT"} classifiers = [ - "Programming Language :: Python :: 3", + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] dependencies = [