Skip to content

Commit a8fee32

Browse files
committed
[bfops/fix-list-tests]: Merge remote-tracking branch 'origin/bfops/share-python-deps' into bfops/fix-list-tests
2 parents fae85d5 + 9aca3b7 commit a8fee32

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ jobs:
109109
with: { python-version: '3.12' }
110110
if: runner.os == 'Windows'
111111
- name: Install python deps
112-
run: |
113-
python -m venv venv
114-
venv/bin/pip install -r smoketests/requirements.txt
112+
run: python -m pip install -r smoketests/requirements.txt
115113
- name: Run smoketests
116114
# Note: clear_database and replication only work in private
117-
run: venv/bin/python -m smoketests ${{ matrix.smoketest_args }} -x clear_database replication teams
115+
run: python -m smoketests ${{ matrix.smoketest_args }} -x clear_database replication teams
118116
- name: Stop containers (Linux)
119117
if: always() && runner.os == 'Linux'
120118
run: docker compose -f .github/docker-compose.yml down

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,6 @@ new.json
226226

227227
# Symlinked output from `nix build`
228228
result
229+
230+
# Python venv directories
231+
venv/

smoketests/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
To use the smoketests, you first need to install the dependencies:
2+
3+
```
4+
python -m venv smoketests/venv
5+
smoketests/venv/bin/pip install -r smoketests/requirements.txt
6+
```
7+
8+
Then, run the smoketests like so:
9+
```
10+
smoketests/venv/bin/python -m smoketests <args>
11+
```

0 commit comments

Comments
 (0)