|
7 | 7 | - main |
8 | 8 |
|
9 | 9 | 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: |
18 | 11 | runs-on: ubuntu-latest |
19 | 12 | steps: |
20 | 13 | - uses: actions/checkout@v4 |
21 | 14 | - uses: chartboost/ruff-action@v1 |
22 | 15 | with: |
23 | | - args: 'format --check .' |
24 | | - build-image: |
25 | | - # needs: [ruff, ruff-format] |
26 | | - needs: [ruff-format] |
| 16 | + args: 'check .' |
| 17 | + ruff-format: |
27 | 18 | runs-on: ubuntu-latest |
28 | 19 | 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 |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - uses: chartboost/ruff-action@v1 |
47 | 22 | with: |
48 | | - name: warnet |
49 | | - path: /tmp/warnet.tar |
| 23 | + args: 'format --check .' |
50 | 24 | test: |
51 | | - needs: [build-image] |
| 25 | + # DISABLE FOR REWRITE |
| 26 | + if: false |
52 | 27 | runs-on: ubuntu-latest |
53 | 28 | strategy: |
54 | 29 | matrix: |
@@ -102,10 +77,3 @@ jobs: |
102 | 77 | run: | |
103 | 78 | source .venv/bin/activate |
104 | 79 | ./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 |
0 commit comments