Skip to content

Commit 1eb54ba

Browse files
committed
fix(ci): restores mssql-server connector in db setup, removes deprecated datetime utcnow references
1 parent 7e1579f commit 1eb54ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ jobs:
144144
python setup_test_db.py
145145
- name: Create SQL Server testing database
146146
run: |
147+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
148+
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
149+
sudo apt-get update
150+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
147151
python setup_sqlserver_test_db.py
148152
- name: Test with pytest
149153
run: |

tests/fixtures/data/positive_samples_in_source_plate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717
from tests.fixtures.data.source_plates import SOURCE_PLATES
1818

19-
DATE_TESTED_NOW = datetime.utcnow()
19+
DATE_TESTED_NOW = datetime.now()
2020

2121
POSITIVE_SAMPLES = [
2222
{

tests/fixtures/data/samples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818
from tests.fixtures.data.source_plates import SOURCE_PLATES
1919

20-
DATE_TESTED_NOW = datetime.utcnow()
20+
DATE_TESTED_NOW = datetime.now()
2121
# NOTE: Remember that the samples of 'plate_123' are joined to the priority samples
2222
# There should be 7 fit to pick samples from all the plates below
2323
SAMPLES = [

0 commit comments

Comments
 (0)