Skip to content

Commit 3e92151

Browse files
authored
Merge pull request #2044 from opentensor/feat/roman/gh-workflow-and-dockerignore
Improve workflow e2e tests and extend `.dockerignore`
2 parents 24471de + fe64109 commit 3e92151

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.dockerignore

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1+
# IDE/Editor configs
12
.devcontainer
2-
.github
33
.vscode
4+
.idea
5+
*.swp
6+
*.swo
7+
8+
# Build artifacts
49
target/
10+
*.pyc
11+
*.pyo
12+
*.pyd
13+
__pycache__/
14+
15+
# Git-related
16+
.git
17+
.gitignore
18+
19+
# CI/CD
20+
.github
521
.dockerignore
22+
.gitattributes
23+
24+
# Dockerfiles
625
Dockerfile
26+
Dockerfile-localnet

.github/workflows/check-bittensor-e2e-tests.yml.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110

111111
build-image-with-current-branch:
112112
needs: check-label
113+
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
113114
runs-on: [self-hosted, type-ccx33]
114115
steps:
115116
- name: Checkout code
@@ -211,12 +212,6 @@ jobs:
211212
- name: Retag Docker Image
212213
run: docker tag localnet ghcr.io/opentensor/subtensor-localnet:devnet-ready
213214

214-
# - name: Run tests
215-
# working-directory: ${{ github.workspace }}/btcli
216-
# run: |
217-
# source ${{ github.workspace }}/venv/bin/activate
218-
# uv run pytest ${{ matrix.test-file }} -s
219-
220215
- name: Run with retry
221216
working-directory: ${{ github.workspace }}/btcli
222217
run: |
@@ -311,12 +306,6 @@ jobs:
311306
- name: Retag Docker Image
312307
run: docker tag localnet ghcr.io/opentensor/subtensor-localnet:devnet-ready
313308

314-
# - name: Run tests
315-
# working-directory: ${{ github.workspace }}/bittensor
316-
# run: |
317-
# source ${{ github.workspace }}/venv/bin/activate
318-
# uv run pytest ${{ matrix.test-file }} -s
319-
320309
- name: Run with retry
321310
working-directory: ${{ github.workspace }}/bittensor
322311
run: |

.github/workflows/docker-localnet.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ jobs:
8686
tags: |
8787
ghcr.io/${{ github.repository }}-localnet:${{ env.tag }}
8888
${{ env.latest_tag == 'true' && format('ghcr.io/{0}-localnet:latest', github.repository) || '' }}
89+
cache-from: type=gha
90+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)