Skip to content

Commit 9fa08d7

Browse files
authored
Merge pull request #170 from ral-facilities/CI-Fix
CI Fix
2 parents 70f0e90 + e2b2f2d commit 9fa08d7

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
- name: Checkout OperationsGateway API
1818
uses: actions/checkout@v3
1919

20-
- name: Setup Python
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: "3.11"
24-
2520
# Install dependencies of python-ldap
2621
- name: Install python-ldap dependencies
2722
run: |
2823
sudo apt-get update
2924
sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
3025
26+
- name: Setup Python
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: "3.11"
30+
3131
- name: Load Pip cache
3232
uses: actions/cache@v3
3333
with:
@@ -51,6 +51,7 @@ jobs:
5151
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
5252
sudo apt-get update
5353
sudo apt-get install -y mongodb-database-tools
54+
5455
# Read the database name from the config file and store it in an environment variable
5556
- name: Get database name from ci_config.yml
5657
run: echo "DATABASE_NAME=$(grep database_name .github/ci_config.yml | cut -d ':' -f 2 | tr -d '[:space:]')" >> $GITHUB_ENV
@@ -61,6 +62,8 @@ jobs:
6162
with:
6263
path: ~/.cache/pypoetry
6364
key: ${{ runner.os }}-poetry-3.11-${{ hashFiles('poetry.lock') }}
65+
- name: Install dependencies
66+
run: poetry install --without simulated-data
6467

6568
# Setup minio and create bucket
6669
- name: Setup minio
@@ -132,6 +135,12 @@ jobs:
132135
with:
133136
python-version: "3.11"
134137

138+
# Install dependencies of python-ldap
139+
- name: Install python-ldap dependencies
140+
run: |
141+
sudo apt-get update
142+
sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
143+
135144
- name: Checkout OperationsGateway API
136145
uses: actions/checkout@v3
137146

@@ -161,6 +170,12 @@ jobs:
161170
with:
162171
python-version: "3.11"
163172

173+
# Install dependencies of python-ldap
174+
- name: Install python-ldap dependencies
175+
run: |
176+
sudo apt-get update
177+
sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
178+
164179
- name: Checkout OperationsGateway API
165180
uses: actions/checkout@v3
166181

@@ -190,6 +205,12 @@ jobs:
190205
with:
191206
python-version: "3.11"
192207

208+
# Install dependencies of python-ldap
209+
- name: Install python-ldap dependencies
210+
run: |
211+
sudo apt-get update
212+
sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev
213+
193214
- name: Checkout OperationsGateway API
194215
uses: actions/checkout@v3
195216

0 commit comments

Comments
 (0)