Skip to content

Commit ea8565b

Browse files
committed
temporarily disable test CI job
1 parent c0b093e commit ea8565b

File tree

5 files changed

+20
-47
lines changed

5 files changed

+20
-47
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
jobs:
99
deploy-to-dockerhub:
1010
runs-on: ubuntu-latest
11-
if: github.event.workflow_run.conclusion == 'success'
11+
# if: github.event.workflow_run.conclusion == 'success'
12+
# DISABLE FOR REWRITE
13+
if: false
1214
steps:
1315
- uses: actions/checkout@v4
1416
- name: Set up QEMU

.github/workflows/publish-dist.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ jobs:
66
build:
77
name: Build distribution 📦
88
runs-on: ubuntu-latest
9-
109
steps:
1110
- uses: actions/checkout@v4
1211
- name: Set up Python
@@ -30,7 +29,9 @@ jobs:
3029
publish-to-pypi:
3130
name: >-
3231
Publish Python 🐍 distribution 📦 to PyPI
33-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
32+
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
33+
# DISABLE FOR REWRITE
34+
if: false
3435
needs:
3536
- build
3637
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 13 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,25 @@ on:
77
- main
88

99
jobs:
10-
# ruff:
11-
# runs-on: ubuntu-latest
12-
# steps:
13-
# - uses: actions/checkout@v4
14-
# - uses: chartboost/ruff-action@v1
15-
# with:
16-
# args: 'check .'
17-
ruff-format:
10+
ruff:
1811
runs-on: ubuntu-latest
1912
steps:
2013
- uses: actions/checkout@v4
21-
- uses: chartboost/ruff-action@v1
22-
with:
23-
args: 'format --check .'
24-
build-image:
25-
# needs: [ruff, ruff-format]
26-
needs: [ruff-format]
14+
- uses: hynek/setup-cached-uv@v1
15+
- run: uv venv
16+
- run: uv pip install ruff
17+
- run: source .venv/bin/activate; ruff check .
18+
ruff-format:
2719
runs-on: ubuntu-latest
2820
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v4
31-
32-
- name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@v3
34-
35-
- name: Build and export
36-
uses: docker/build-push-action@v5
37-
with:
38-
file: resources/images/rpc/Dockerfile_prod
39-
context: .
40-
tags: warnet/dev
41-
cache-from: type=gha
42-
cache-to: type=gha,mode=max
43-
outputs: type=docker,dest=/tmp/warnet.tar
44-
45-
- name: Upload artifact
46-
uses: actions/upload-artifact@v4
47-
with:
48-
name: warnet
49-
path: /tmp/warnet.tar
21+
- uses: actions/checkout@v4
22+
- uses: hynek/setup-cached-uv@v1
23+
- run: uv venv
24+
- run: uv pip install ruff
25+
- run: source .venv/bin/activate; ruff format .
5026
test:
51-
needs: [build-image]
27+
# DISABLE FOR REWRITE
28+
if: false
5229
runs-on: ubuntu-latest
5330
strategy:
5431
matrix:
@@ -102,10 +79,3 @@ jobs:
10279
run: |
10380
source .venv/bin/activate
10481
./test/${{matrix.test}}
105-
# build-test:
106-
# needs: [build-image]
107-
# runs-on: ubuntu-latest
108-
# steps:
109-
# - uses: actions/checkout@v4
110-
# - uses: ./.github/actions/compose
111-
# - run: ./test/build_branch_test.py compose

src/warnet/cli/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# from .bitcoin import bitcoin
99
from .graph import graph
1010
from .image import image
11+
1112
# from .ln import ln
1213
from .network import network
1314
from .scenarios import scenarios

src/warnet/cli/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
logger = logging.getLogger("utils")
2222

2323

24-
2524
SUPPORTED_TAGS = ["27.0", "26.0", "25.1", "24.2", "23.2", "22.2"]
2625
DEFAULT_TAG = SUPPORTED_TAGS[0]
2726
WEIGHTED_TAGS = [

0 commit comments

Comments
 (0)