micael-grilo / airflow-dags-test-action

GitHub Action to Test Airflow Dags
https://github.com/marketplace/actions/airflow-dags-test
MIT License
21 stars 7 forks source link

Getting error - pytest: not found - Do I need to add it manually? #11

Closed idanb11 closed 1 week ago

idanb11 commented 5 months ago
**Successfully installed PyAthena-3.8.2 affine-2.4.0 apache-airflow-providers-amazon-8.20.0 apache-airflow-providers-smtp-1.7.0 arrow-1.3.0 asn1crypto-1.5.1 asttokens-2.4.1 backoff-2.2.1 bcrypt-4.1.3 beautifulsoup4-4.12.3 binaryornot-0.4.4 bokeh-3.4.1 boto3-1.34.106 botocore-1.34.106 bytecode-0.15.1 cachetools-5.3.3 cattrs-23.2.3 cfgrib-0.9.11.0 cftime-1.6.3 chardet-5.2.0 click-plugins-1.1.1 cligj-0.7.2 cloudpickle-2.2.1 coiled-1.22.0 comm-0.2.2 contourpy-1.2.1 cookiecutter-2.6.0 croniter-1.4.1 cycler-0.12.1 dask-2024.4.2 dask-expr-1.0.14 ddsketch-3.0.1 ddtrace-2.8.4 decorator-5.1.1 dependency-injector-4.41.0 distributed-2024.4.2 eccodes-1.7.0 ecdsa-0.19.0 envier-0.5.1 executing-2.0.1 fabric-3.2.2 filelock-3.14.0 findlibs-0.0.5 fonttools-4.51.0 gilknocker-0.4.1 gitdb-4.0.11 gitpython-3.1.43 google-api-core-2.19.0 google-auth-2.29.0 google-cloud-core-2.4.1 google-cloud-storage-2.14.0 google-crc32c-1.5.0 google-resumable-media-2.7.0 h2-4.1.0 h3-3.7.7 h5netcdf-1.3.0 h5py-3.11.0 hpack-4.0.0 hyperframe-6.0.1 invoke-2.2.0 ipython-8.24.0 ipywidgets-8.1.2 jedi-0.19.1 jmespath-1.0.1 joblib-1.4.2 jsondiff-2.0.0 jsonpath_ng-1.6.1 jupyterlab-widgets-3.0.10 kiwisolver-1.4.5 lightgbm-4.3.0 locket-1.0.0 lxml-5.2.2 lz4-4.3.3 marshmallow-dataclass-8.6.1 matplotlib-3.9.0 matplotlib-inline-0.1.7 metpy-1.6.2 msgpack-1.0.8 mypy-extensions-1.0.0 netCDF4-1.6.5 numpy-1.26.4 pandas-2.1.4 paramiko-3.4.0 parso-0.8.4 partd-1.4.2 pexpect-4.9.0 pillow-10.3.0 pint-0.23 pip-requirements-parser-32.0.1 platformdirs-4.2.2 ply-3.11 pooch-1.8.1 prometheus-client-0.20.0 prompt-toolkit-3.0.43 proto-plus-1.23.0 psycopg2-binary-2.9.9 ptyprocess-0.7.0 pure-eval-0.2.2 pvlib-0.10.5 pyarrow-16.1.0 pyarrow-hotfix-0.6 pyasn1-0.6.0 pyasn1-modules-0.4.0 pygrib-2.1.5 pynacl-1.5.0 pyparsing-3.1.2 pyproj-3.6.1 python-dotenv-1.0.1 python-jose-3.3.0 python-json-logger-2.0.7 qwak-core-0.4.10 qwak-inference-0.1.17 qwak-sdk-0.5.68 rasterio-1.3.10 redshift_connector-2.1.1 retrying-1.3.4 rsa-4.9 s3transfer-0.10.1 scipy-1.13.0 scramp-1.4.5 smmap-5.0.1 snuggs-1.4.7 sortedcontainers-2.4.0 soupsieve-2.5 sqlalchemy_redshift-0.8.14 stack-data-0.6.3 tblib-3.0.0 termcolor-2.3.0 toml-0.10.2 toolz-0.12.1 tornado-6.4 tqdm-4.66.4 traitlets-5.14.3 typeguard-2.13.3 types-python-dateutil-2.9.0.20240316 typing-inspect-0.9.0 tzdata-2024.1 watchtower-3.2.0 wcwidth-0.2.13 widgetsnbextension-4.0.10 xarray-2024.5.0 xmltodict-0.13.0 xyzservices-2024.4.0 yaspin-3.0.2 zict-3.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/local/lib/python3.11/site-packages/airflow/cli/commands/db_command.py:68 DeprecationWarning: `db upgrade` is deprecated. Use `db migrate` instead.
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [alembic.runtime.migration] Running stamp_revision  -> 88344c1d9134
[2024-05-16T07:56:35.607+0000] {crypto.py:82} WARNING - empty cryptography key - values will not be stored encrypted.
8 of 8 variables successfully updated.
/entrypoint.sh: 28: pytest: not found**
micael-grilo commented 5 months ago

@idanb11 yes you need to add the pytest version in your project/requirements.txt file. I will add it by default in the next release.

idanb11 commented 5 months ago

@micael-grilo - thank you for your reply. I added the pytest but airflow-dags-test-action doesn't pick up and test my DAG files. Is it possible that DAG files that are using TaskFlow API are not supported?