Skip to content

For issue 1575: Eliminating Manual Class Registration in Unitxt, replaced by Import Paths #7172

For issue 1575: Eliminating Manual Class Registration in Unitxt, replaced by Import Paths

For issue 1575: Eliminating Manual Class Registration in Unitxt, replaced by Import Paths #7172

Workflow file for this run

name: Test Library Code
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
unittests:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
OS: ubuntu-latest
UNITXT_DEFAULT_VERBOSITY: error
DATASETS_VERBOSITY: error
HF_HUB_VERBOSITY: error
HF_DATASETS_DISABLE_PROGRESS_BARS: "True"
HF_HUB_DOWNLOAD_TIMEOUT: 60
HF_HUB_ETAG_TIMEOUT: 60
TQDM_DISABLE: "True"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- run: echo "blis==0" > constraints.txt
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install --upgrade --system torch --index-url https://download.pytorch.org/whl/cpu
- run: uv pip install --system -c constraints.txt -e ".[tests]"
- run: |
pip install --only-binary :all: spacy
pip install networkx==3.2.1
- run: pip install coverage[toml]
- name: Run Tests
run: coverage run -m unittest discover -s tests/library -p "test_*.py"
- run: coverage report
- name: Upload Coverage to Coveralls
uses: coverallsapp/github-action@v2