add wandb, create api docker file, and config_cpu for model training … #49
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 tests" | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements_tests.txt | |
- name: Test with pytest and coverage | |
run: | | |
coverage run -m pytest -v | |
- name: Generate coverage report | |
run: | | |
coverage report -m | |
coverage html | |
- name: Upload coverage report | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-report | |
path: ./htmlcov |