Added RoBERTa model training and w&b model tracking and logging (#25) #79
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: 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: Run tests | |
run: | | |
poetry run pytest -n 4 -v tests/ | |
working-directory: ${{ github.workspace }} |