diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dff4e6bd0c..c73fae5efbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: matrix: test: ['unit', 'integration'] os: [ubuntu-latest, windows-latest] - pyarrow_version: [latest, 6.0.1] + deps_versions: [latest, minimum] continue-on-error: ${{ matrix.test == 'integration' }} runs-on: ${{ matrix.os }} steps: @@ -63,12 +63,12 @@ jobs: run: | pip install .[tests] pip install -r additional-tests-requirements.txt --no-deps - - name: Install latest PyArrow - if: ${{ matrix.pyarrow_version == 'latest' }} - run: pip install pyarrow --upgrade - - name: Install PyArrow ${{ matrix.pyarrow_version }} - if: ${{ matrix.pyarrow_version != 'latest' }} - run: pip install pyarrow==${{ matrix.pyarrow_version }} + - name: Install dependencies (latest versions) + if: ${{ matrix.deps_versions == 'latest' }} + run: pip install --upgrade pyarrow huggingface-hub + - name: Install depencencies (minimum versions) + if: ${{ matrix.deps_versions != 'latest' }} + run: pip install pyarrow==6.0.1 huggingface-hub==0.2.0 - name: Test with pytest run: | python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/ diff --git a/setup.py b/setup.py index 509042e18c6..60fd6b89cef 100644 --- a/setup.py +++ b/setup.py @@ -89,7 +89,8 @@ # for data streaming via http "aiohttp", # To get datasets from the Datasets Hub on huggingface.co - "huggingface-hub>=0.1.0,<1.0.0", + # minimum 0.2.0 for set_access_token + "huggingface-hub>=0.2.0,<1.0.0", # Utilities from PyPA to e.g., compare versions "packaging", "responses<0.19",