Skip to content

add wandb, create api docker file, and config_cpu for model training … #49

add wandb, create api docker file, and config_cpu for model training …

add wandb, create api docker file, and config_cpu for model training … #49

Workflow file for this run

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