Skip to content

Add support for custom Volumes/Volume Mounts #1904

Add support for custom Volumes/Volume Mounts

Add support for custom Volumes/Volume Mounts #1904

Workflow file for this run

name: Python Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install poetry
run: pip install poetry
- name: Install dependencies with poetry
run: |
poetry config virtualenvs.create false
poetry lock
poetry install --with test
- name: Test with pytest and check coverage
run: |
coverage run --omit="src/**/test_*.py,src/codeflare_sdk/common/utils/unit_test_support.py" -m pytest
coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2)
if (( $coverage < 90 )); then echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}