55 branches :
66 - main
77 push :
8- # branches:
9- # - main
10- # - ci-*
8+ branches :
9+ - main
10+ - ci-*
1111
1212env :
13- CI_HEADERS : ${{ secrets.CI_HEADERS }}
13+ HF_ALLOW_CODE_EVAL : 1
1414
1515jobs :
1616
2525 - name : Install dependencies
2626 run : |
2727 python -m pip install --upgrade pip
28- pip install --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
2928 pip install .[quality]
3029 - name : Check quality
3130 run : |
@@ -45,29 +44,25 @@ jobs:
4544 - uses : actions/checkout@v4
4645 with :
4746 fetch-depth : 0
48- - name : Setup FFmpeg
49- if : ${{ matrix.os == 'ubuntu-latest' }}
50- run : |
51- sudo apt update
52- sudo apt install -y ffmpeg
5347 - name : Set up Python 3.9
5448 uses : actions/setup-python@v5
5549 with :
5650 python-version : " 3.9"
5751 - name : Upgrade pip
5852 run : python -m pip install --upgrade pip
53+ - name : Pin setuptools-scm
54+ if : ${{ matrix.os == 'ubuntu-latest' }}
55+ run : echo "installing pinned version of setuptools-scm to fix seqeval installation on 3.7" && pip install "setuptools-scm==6.4.2"
5956 - name : Install uv
6057 run : pip install --upgrade uv
6158 - name : Install dependencies
62- run : |
63- uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
64- uv pip install --system "datasets[tests] @ ."
59+ run : uv pip install --system "datasets[tests] @ ."
6560 - name : Install dependencies (latest versions)
6661 if : ${{ matrix.deps_versions == 'deps-latest' }}
67- run : uv pip install --system --upgrade huggingface-hub "dill<0.3.9"
62+ run : uv pip install --system --upgrade pyarrow huggingface-hub "dill<0.3.9"
6863 - name : Install dependencies (minimum versions)
6964 if : ${{ matrix.deps_versions != 'deps-latest' }}
70- run : uv pip install --system huggingface-hub==0.24.7 transformers dill==0.3.1.1
65+ run : uv pip install --system pyarrow==15.0.0 huggingface-hub==0.24.7 transformers dill==0.3.1.1
7166 - name : Test with pytest
7267 run : |
7368 python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
8580 - uses : actions/checkout@v4
8681 with :
8782 fetch-depth : 0
88- - name : Setup FFmpeg
89- if : ${{ matrix.os == 'ubuntu-latest' }}
90- run : |
91- sudo apt update
92- sudo apt install -y ffmpeg
9383 - name : Set up Python 3.11
9484 uses : actions/setup-python@v5
9585 with :
9989 - name : Install uv
10090 run : pip install --upgrade uv
10191 - name : Install dependencies
102- run : |
103- uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
104- uv pip install --system "datasets[tests] @ ."
92+ run : uv pip install --system "datasets[tests] @ ."
10593 - name : Test with pytest
10694 run : |
10795 python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
@@ -119,11 +107,6 @@ jobs:
119107 - uses : actions/checkout@v4
120108 with :
121109 fetch-depth : 0
122- - name : Setup FFmpeg
123- if : ${{ matrix.os == 'ubuntu-latest' }}
124- run : |
125- sudo apt update
126- sudo apt install -y ffmpeg
127110 - name : Set up Python 3.11
128111 uses : actions/setup-python@v5
129112 with :
@@ -133,9 +116,7 @@ jobs:
133116 - name : Install uv
134117 run : pip install --upgrade uv
135118 - name : Install dependencies
136- run : |
137- uv pip install --system --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "pyarrow>=21.0.0.dev"
138- uv pip install --system "datasets[tests_numpy2] @ ."
119+ run : uv pip install --system "datasets[tests_numpy2] @ ."
139120 - name : Test with pytest
140121 run : |
141122 python -m pytest -rfExX -m ${{ matrix.test }} -n 2 --dist loadfile -sv ./tests/
0 commit comments