Skip to content

Commit ea7b53d

Browse files
HenryHenry
authored andcommitted
fix CI dependency setup
1 parent 1eb92e0 commit ea7b53d

6 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/basic-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v7
2020

2121
- name: Set up Python 3.12
22-
uses: actions/setup-python@v6
22+
uses: actions/setup-python@v7
2323
with:
2424
python-version: '3.12'
2525

@@ -98,7 +98,7 @@ jobs:
9898
uses: actions/checkout@v7
9999

100100
- name: Set up Python 3.12
101-
uses: actions/setup-python@v6
101+
uses: actions/setup-python@v7
102102
with:
103103
python-version: '3.12'
104104
cache: pip
@@ -108,7 +108,7 @@ jobs:
108108
109109
- name: Install development dependencies
110110
working-directory: ./backend_api_python
111-
run: python -m pip install --disable-pip-version-check -r requirements-dev.txt
111+
run: python -m pip install --disable-pip-version-check -r requirements.lock -r requirements-dev.txt
112112

113113
- name: Python import check
114114
if: matrix.shard_index == 0
@@ -173,7 +173,7 @@ jobs:
173173
uses: actions/checkout@v7
174174

175175
- name: Set up Python 3.12
176-
uses: actions/setup-python@v6
176+
uses: actions/setup-python@v7
177177
with:
178178
python-version: '3.12'
179179

.github/workflows/openapi-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v7
3535

3636
- name: Set up Python 3.12
37-
uses: actions/setup-python@v6
37+
uses: actions/setup-python@v7
3838
with:
3939
python-version: '3.12'
4040
cache: pip

.github/workflows/security-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v7
2626

2727
- name: Set up Python 3.12
28-
uses: actions/setup-python@v6
28+
uses: actions/setup-python@v7
2929
with:
3030
python-version: '3.12'
3131
cache: pip

backend_api_python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Create an environment and install development dependencies:
125125
```bash
126126
python -m venv .venv
127127
python -m pip install --upgrade pip
128-
python -m pip install -r requirements-dev.txt
128+
python -m pip install -r requirements.lock -r requirements-dev.txt
129129
```
130130

131131
Apply migrations:

backend_api_python/requirements-dev.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
-r requirements.lock
2-
31
bandit[toml]>=1.8.6,<2
42
pip-audit>=2.9.0,<3
53
pytest>=9.0.3,<10

backend_api_python/tests/test_process_roles.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ def test_config_loader_does_not_override_supervisor_environment(monkeypatch):
4545
from app.utils import config_loader
4646

4747
calls = []
48+
monkeypatch.setattr(
49+
config_loader.Path,
50+
"exists",
51+
lambda path: path.name == ".env",
52+
)
4853
monkeypatch.setattr(
4954
dotenv,
5055
"load_dotenv",

0 commit comments

Comments
 (0)