Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- main

env:
UV_SYSTEM_PYTHON: 1
PYTHON_VERSION: "3.12"
STERN_VERSION: "1.30.0"

jobs:

Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -95,14 +106,13 @@ 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
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
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down