[DEVX-890]: Updated README files for Image Annotation Loader #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run annotation tests | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - 'clarifai_datautils/image/**' | |
| pull_request: | |
| paths: | |
| - 'clarifai_datautils/image/**' | |
| jobs: | |
| annotation-tests: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: | |
| - '3.11' | |
| - '3.10' | |
| - '3.9' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies for annotation tests | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install datumaro==1.6.1 | |
| pip install -r tests/requirements.txt | |
| - name: Run annotation tests | |
| shell: bash | |
| run: | | |
| export PYTHONPATH=. | |
| pytest tests/annotations/ |