ThreeCredits / ChitChat

ChitChat is an open source instant messaging server/client
GNU General Public License v3.0
4 stars 0 forks source link

create python-app.yml #19

Closed Sim0xx001 closed 1 year ago

Sim0xx001 commented 1 year ago

Very simple implementation for pytest pipeline

Helias commented 1 year ago

potreste aggiungere pylint 👀 https://github.com/UNICT-Quality-Development/qd-starter-pack/pull/25

Helias commented 1 year ago

imho sys.path.append è un big hack, ogni tanto lo uso ma non mi sembra il caso di usarlo ispiratevi a https://github.com/UNICT-Quality-Development/qd-starter-pack/

da notare che l'errore "no module found taggedQueue" (o simili) è dovuto al non visualizzare la cartella del progetto root (/) come "modulo" perchè non è presente il file __init__.py, come è presente sotto src/ in qd-starter-pack ( https://github.com/UNICT-Quality-Development/qd-starter-pack/blob/main/src/__init__.py ), quindi aggiungete nella cartella principale del progetto init.py

Purtroppo python non è un ottimo linguaggio per gestire gli import.

P.S. vi consiglio di fixare i tests localmente eseguendo nel vostro pc il comando python3 -m pytest . o pytest tests o pytest . mentre siete nella cartella principale del progetto (quindi nella cartella superiore a tests NON dentro tests).