Result analysis #159
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: Fraud Detector CI/CD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install NVIDIA CUDA Toolkit and GCC for CUDA | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc | |
- name: Set environment variable for scikit-learn depricated package | |
run: echo "SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True" >> $GITHUB_ENV | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade pip | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
env: | |
POETRY_HOME: $HOME/.poetry | |
PATH: $HOME/.poetry/bin:$PATH | |
- name: Install project dependencies | |
run: | | |
poetry install | |
working-directory: ${{ github.workspace }} | |
- name: NLTK dependancies | |
run: | | |
poetry run python3 -m nltk.downloader stopwords | |
- name: Run tests | |
run: | | |
poetry run pytest -n 4 -v tests/ | |
working-directory: ${{ github.workspace }} |