add exploratory data analysis #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Text Classification: Test" | |
on: | |
workflow_dispatch: | |
pull_request: | |
env: | |
AWS_REGION: eu-south-1 | |
jobs: | |
test-text-classification: | |
name: Test text classification pipelines | |
timeout-minutes: 1500 | |
runs-on: local | |
container: | |
image: ghcr.io/digital-defiance/sentiment-analysis-pipeline:main | |
options: --user root | |
env: | |
RUST_BACKTRACE: "full" | |
LIBTORCH_USE_PYTORCH: "1" | |
LLMVC_ENVIRONMENT: "development" | |
MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URL }} | |
MLFLOW_TRACKING_USERNAME: ${{ secrets.MLFLOW_USERNAME }} | |
MLFLOW_TRACKING_PASSWORD: ${{ secrets.MLFLOW_PASSWORD }} | |
steps: | |
- uses: actions/checkout@master | |
# stuff to be moved to the production image | |
- run: pip install psycopg2-binary # required for mlflow to talk to postgres | |
- run: pip install mlflow | |
- run: pip install prefect-shell | |
- name: Find and set torch lib path | |
run: | | |
SITE_PACKAGES=$(python -c "import site; print(site.getsitepackages()[0])") | |
TORCH_LIB_PATH="${SITE_PACKAGES}/torch/lib" | |
echo "LD_LIBRARY_PATH=$TORCH_LIB_PATH" >> $GITHUB_ENV | |
- run: pip install pytest | |
- name: Login to prefect | |
run: yes | prefect cloud login --key ${{ secrets.PREFECT_API_KEY }} --workspace 'digital-defiance/default' | |
- run: python -m pytest pipelines/text_classification/data.py -vvv | |