Skip to content

Commit

Permalink
Run test_dataset.py tests sequentially, add filelock dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
JSabadin committed Jan 9, 2025
1 parent bbde0d2 commit b6e28ac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
ROBOFLOW_API_KEY: ${{ secrets.ROBOFLOW_API_KEY }}
LUXONISML_BUCKET: luxonis-test-bucket
run:
pytest --cov --junitxml=junit.xml -o junit_family=legacy
pytest --cov --junitxml=junit.xml -o junit_family=legacy luxonis_ml/tests --ignore=tests/test_data/test_dataset.py

- name: Upload test results to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
Expand All @@ -109,3 +109,28 @@ jobs:
name: coverage
path: coverage.xml
overwrite: true

test-dataset:
needs: tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.10']

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install package
run: pip install -e .[dev]

- name: Run test_dataset.py
run: pytest luxonis_ml/tests/test_data/test_dataset.py
1 change: 1 addition & 0 deletions luxonis_ml/data/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ polars[timezone]>=0.20.31
ordered-set>=4.0.0
semver>=3.0.0
# roboflow>=0.1.1
filelock>=3.0.0

0 comments on commit b6e28ac

Please sign in to comment.