Skip to content

[Update] reformated code using black and apply ruff --fix #7

[Update] reformated code using black and apply ruff --fix

[Update] reformated code using black and apply ruff --fix #7

Workflow file for this run

name: Run Unit Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pytest dependencie
run: |
pip install pytest
pip install pytest-cov
- name: Set PYTHONPATH for the tests
run: |
echo "PYTHONPATH=$(pwd)/src" >> $GITHUB_ENV
- name: Run unit test with pytest
run: |
pytest --cov=src/toxic_comment_classification_kedro tests/