Skip to content

Commit 93d8b1c

Browse files
remove venv job
1 parent c3595ea commit 93d8b1c

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

.github/workflows/e2e-subtensor-tests.yaml

+8-32
Original file line numberDiff line numberDiff line change
@@ -60,36 +60,11 @@ jobs:
6060
name: subtensor-localnet
6161
path: subtensor-localnet.tar
6262

63-
create_venv:
64-
runs-on: ubuntu-latest
65-
steps:
66-
- name: Check out repository
67-
uses: actions/checkout@v4
68-
69-
- name: Install Python
70-
uses: actions/setup-python@v4
71-
72-
- name: Create Python virtual environment
73-
run: python -m venv ${{ github.workspace }}/venv
74-
75-
- name: Install dependencies
76-
run: |
77-
${{ github.workspace }}/venv/bin/pip install -e .[dev]
78-
${{ github.workspace }}/venv/bin/pip install pytest
79-
80-
- name: Upload virtual environment as artifact
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: venv
84-
path: ${{ github.workspace }}/venv
85-
86-
8763
# Job to run tests in parallel
8864
run:
8965
needs:
9066
- find-tests
9167
- pull-docker-image
92-
- create_venv
9368
runs-on: ubuntu-latest
9469
timeout-minutes: 45
9570
strategy:
@@ -111,11 +86,8 @@ jobs:
11186

11287
- name: Install Python
11388
uses: actions/setup-python@v4
114-
115-
- name: Install requirements
116-
run: |
117-
${{ github.workspace }}/venv/bin/pip install -e .[dev]
118-
${{ github.workspace }}/venv/bin/pip install pytest
89+
with:
90+
python-version: '3.12'
11991

12092
# - name: Install uv
12193
# uses: astral-sh/setup-uv@v4
@@ -131,6 +103,10 @@ jobs:
131103
- name: Load Docker Image
132104
run: docker load -i subtensor-localnet.tar
133105

134-
- name: Run tests
106+
- name: Install requirements
135107
run: |
136-
${{ github.workspace }}/venv/bin/pytest ${{ matrix.test-file }} -s
108+
pip install -e .[dev]
109+
pip install pytest
110+
111+
- name: Run tests
112+
run: pytest ${{ matrix.test-file }} -s

0 commit comments

Comments
 (0)