|
25 | 25 | with:
|
26 | 26 | python-version: '3.11'
|
27 | 27 |
|
| 28 | + env: |
| 29 | + PIP_CONSTRAINT: pip-constraints.txt |
28 | 30 | with:
|
29 | 31 | requirementsFiles: requirements/dev.txt
|
30 | 32 | sortPaths: 'src'
|
|
45 | 47 | python-version: '3.11'
|
46 | 48 | - name: Install dependencies
|
47 | 49 | run: |
|
48 |
| - pip install -r requirements/dev.txt |
| 50 | + python -m pip install --upgrade pip |
| 51 | + pip install setuptools==71.1.0 |
| 52 | + pip install --no-build-isolation -r requirements/dev.txt |
49 | 53 | - name: Run black
|
50 | 54 | run: |
|
51 | 55 | black --check --diff src
|
|
58 | 62 | - uses: actions/checkout@v3
|
59 | 63 | - name: Set up backend environment
|
60 | 64 | uses: maykinmedia/setup-django-backend@v1
|
| 65 | + env: |
| 66 | + PIP_CONSTRAINT: pip-constraints.txt |
61 | 67 | with:
|
62 | 68 | apt-packages: 'libxml2-dev libxmlsec1-dev libxmlsec1-openssl gdal-bin'
|
63 | 69 | python-version: '3.11'
|
@@ -112,7 +118,9 @@ jobs:
|
112 | 118 | run: |
|
113 | 119 | sudo apt-get update
|
114 | 120 | sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
|
115 |
| - pip install -r requirements/dev.txt |
| 121 | + python -m pip install --upgrade pip |
| 122 | + pip install setuptools==71.1.0 |
| 123 | + pip install --no-build-isolation -r requirements/dev.txt |
116 | 124 | - name: Run manage.py makemigrations --check --dry-run
|
117 | 125 | run: |
|
118 | 126 | src/manage.py makemigrations --check --dry-run
|
@@ -150,7 +158,9 @@ jobs:
|
150 | 158 | python-version: '3.11'
|
151 | 159 | - name: Install dependencies
|
152 | 160 | run: |
|
153 |
| - pip install -r requirements/dev.txt |
| 161 | + python -m pip install --upgrade pip |
| 162 | + pip install setuptools==71.1.0 |
| 163 | + pip install --no-build-isolation -r requirements/dev.txt |
154 | 164 | - name: Run Bandit
|
155 | 165 | run: |
|
156 | 166 | bandit -r ./src/ -x tests,conf/utils.py -s B101
|
0 commit comments