feat: Make Cross Validation optional #55
Workflow file for this run
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: "Code linter check and unit tests" | |
on: [push, pull_request] | |
jobs: | |
main: | |
name: Check code formatting and run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install flit | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install 'flit>=3.8.0' | |
- name: Install project dependencies | |
run: | | |
flit install --deps develop --extras tensorflow,xgboost | |
- name: Run isort | |
run: | | |
isort --check src/ | |
isort --check tests/ | |
- name: Run black | |
run: | | |
black --check src/ | |
black --check tests/ | |
- name: Run pytest | |
run: | | |
pytest | |
- name: Run pylint | |
run: | | |
pylint src/ || true |