Skip to content

Commit 9d51918

Browse files
committed
ci(server): pin workflow dependencies for safer installs
1 parent d9a2634 commit 9d51918

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/server.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ jobs:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Install
4343
run: |
44-
python -m pip install --upgrade pip
45-
pip install .
44+
python - <<'PY'
45+
import subprocess
46+
import sys
47+
48+
pip_spec = "pip==21.3.1" if sys.version_info < (3, 7) else "pip==24.0"
49+
subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", pip_spec, "--only-binary=:all:"])
50+
PY
51+
python -m pip install --no-deps .
4652
test-unit:
4753
runs-on: ubuntu-latest
4854
needs: build-server
@@ -57,9 +63,9 @@ jobs:
5763
python-version: 3.9
5864
- name: Install dependencies
5965
run: |
60-
python -m pip install --upgrade pip
61-
python -m pip install '.[test]'
62-
python -m pip install .
66+
python -m pip install --upgrade "pip==24.0" --only-binary=:all:
67+
python -m pip install --only-binary=:all: -r requirements-ci-py39.txt
68+
python -m pip install --no-deps .
6369
- name: Test unit tests
6470
run: |
6571
set -o pipefail

server/requirements-ci-py39.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
channelfinder @ https://github.com/ChannelFinder/pyCFClient/archive/refs/tags/v3.2.0.zip
2+
requests==2.32.3
3+
twisted==24.11.0
4+
pytest==8.3.5
5+
testcontainers==4.8.2

0 commit comments

Comments
 (0)