p2ov commited on
Commit
a65bafd
·
1 Parent(s): 7ed0cf6

ajout dockerfile dans tests/

Browse files
tests/Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Utiliser l'image officielle Python
2
+ FROM python:3.9-slim
3
+
4
+ # Définir le dossier de travail
5
+ WORKDIR /app
6
+
7
+ # Copier uniquement les fichiers nécessaires
8
+ COPY tests/requirements.txt requirements.txt
9
+ RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copier le code source et les tests (avec le bon chemin)
12
+ COPY etl_process.py /app/
13
+ COPY tests/test_etl.py tests/upload_s3.py /app/
14
+
15
+ # Exécuter les tests Pytest au démarrage
16
+ # CMD ["pytest", "test_etl.py", "--junitxml=results.xml"]
17
+ CMD pytest test_etl.py --junitxml=results.xml && python upload_s3.py
tests/Dockerfile:Zone.Identifier ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [ZoneTransfer]
2
+ ZoneId=3
3
+ ReferrerUrl=C:\Users\poove\Downloads\paycare.zip
tests/requirements.txt:Zone.Identifier ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [ZoneTransfer]
2
+ ZoneId=3
3
+ ReferrerUrl=C:\Users\poove\Downloads\paycare.zip
tests/test_etl.py:Zone.Identifier ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [ZoneTransfer]
2
+ ZoneId=3
3
+ ReferrerUrl=C:\Users\poove\Downloads\paycare.zip
tests/upload_s3.py:Zone.Identifier ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [ZoneTransfer]
2
+ ZoneId=3
3
+ ReferrerUrl=C:\Users\poove\Downloads\paycare.zip