@@ -60,36 +60,11 @@ jobs:
60
60
name : subtensor-localnet
61
61
path : subtensor-localnet.tar
62
62
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
-
87
63
# Job to run tests in parallel
88
64
run :
89
65
needs :
90
66
- find-tests
91
67
- pull-docker-image
92
- - create_venv
93
68
runs-on : ubuntu-latest
94
69
timeout-minutes : 45
95
70
strategy :
@@ -111,11 +86,8 @@ jobs:
111
86
112
87
- name : Install Python
113
88
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'
119
91
120
92
# - name: Install uv
121
93
# uses: astral-sh/setup-uv@v4
@@ -131,6 +103,10 @@ jobs:
131
103
- name : Load Docker Image
132
104
run : docker load -i subtensor-localnet.tar
133
105
134
- - name : Run tests
106
+ - name : Install requirements
135
107
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