Skip to content

Add Storage endpoints #33

Add Storage endpoints

Add Storage endpoints #33

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
paths:
- 'cbir/**'
- 'tests/**'
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:${{ vars.REDIS_VERSION }}
ports:
- 6379:6379
steps:
- name: Set up the repository
uses: actions/checkout@v3
- name: Set up Python ${{ vars.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry install
- name: Set up DVC
uses: iterative/setup-dvc@v1
- name: Pull model for tests
run: dvc pull
env:
GDRIVE_CREDENTIALS_DATA: ${{ secrets.GDRIVE_CREDENTIALS_DATA }}
- name: Run tests
run: python -m poetry run coverage run -m pytest
env:
DATA_PATH: ${{ vars.DATA_PATH }}
WEIGHTS: ${{ vars.WEIGHTS_PATH }}
- name: Upload coverage report
run: |
echo '# Coverage report' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
python -m poetry run coverage report -m >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY