Skip to content

Commit

Permalink
Merge pull request #17 from acostapazo/feature/github-actions-python311
Browse files Browse the repository at this point in the history
Feature/GitHub actions python311
  • Loading branch information
acostapazo authored Feb 7, 2023
2 parents d5b6c38 + 68b8ef4 commit ced4cc9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10'] # TODO '3.11-dev' waiting for scikit-learn compatibility
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] # TODO '3.11-dev' waiting for scikit-learn compatibility
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ${{matrix.os}}
continue-on-error: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reproducible_research.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: [3.9]
python-version: ['3.11']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
Expand Down
22 changes: 22 additions & 0 deletions tests/unit/foundations/annotations/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ def test_should_check_annotations_statistics():
]


@pytest.mark.unit
def test_should_filter_by_ids():
from gradgpad import annotations

selected_annotations = annotations.get_annotations_from_ids(
["casia-fasd_test_release/1/6.avi"]
)

assert len(selected_annotations) == 1


@pytest.mark.unit
def test_should_filter_annotations_by_dataset():
from gradgpad import annotations

selected_annotations = annotations.get_annotations_filtered_by_datasets(
["replay-mobile"]
)

assert len(selected_annotations) == 1030


@pytest.fixture
def expected_pseudo_random_ids_values():
return [
Expand Down

0 comments on commit ced4cc9

Please sign in to comment.