Skip to content

Commit ed43f5a

Browse files
authored
Merge pull request #2503 from opentensor/feat/thewhaleking/use-uv-gh-actions
Use uv for gh actions
2 parents 90107ee + bd43bce commit ed43f5a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

+10-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
test-files: ${{ steps.get-tests.outputs.test-files }}
3434
steps:
3535
- name: Check-out repository under $GITHUB_WORKSPACE
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737

3838
- name: Find test files
3939
id: get-tests
@@ -66,7 +66,7 @@ jobs:
6666
TARGET: ${{ matrix.rust-target }}
6767
steps:
6868
- name: Check-out repository under $GITHUB_WORKSPACE
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@v4
7070

7171
- name: Install dependencies
7272
run: |
@@ -92,14 +92,18 @@ jobs:
9292
working-directory: ${{ github.workspace }}/subtensor
9393
run: git checkout devnet-ready
9494

95+
- name: Install uv
96+
uses: astral-sh/setup-uv@v4
97+
98+
- name: install dependencies
99+
run: uv sync --all-extras --dev
100+
95101
- name: Run tests
96102
run: |
97-
python3 -m pip install -e .[dev] pytest
98-
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" pytest ${{ matrix.test-file }} -s
103+
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" uv run pytest ${{ matrix.test-file }} -s
99104
100105
- name: Retry failed tests
101106
if: failure()
102107
run: |
103108
sleep 10
104-
python3 -m pip install -e .[dev] pytest
105-
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" pytest ${{ matrix.test-file }} -s
109+
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" uv run pytest ${{ matrix.test-file }} -s

0 commit comments

Comments
 (0)