[Update] reformated code using black and apply ruff --fix #7
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: 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/ |