File tree Expand file tree Collapse file tree 1 file changed +1
-45
lines changed Expand file tree Collapse file tree 1 file changed +1
-45
lines changed Original file line number Diff line number Diff line change 5959 UNITTEST_GOING=1 pytest --durations=10 _unittests --ignore _unittests/ut_reference/test_backend_extended_reference_evaluator.py
6060 export PYTHONPATH=
6161
62- jobs :
63- run :
64- name : backend-test ${{ matrix.os }}-${{ matrix.python }}
65- runs-on : ${{ matrix.os }}
66- strategy :
67- matrix :
68- os : [ubuntu-latest]
69- python : ['3.12']
70-
71- steps :
72- - uses : actions/checkout@v3
73-
74- - uses : actions/setup-python@v4
75- with :
76- python-version : ${{ matrix.python }}
77-
78- - name : Install pytorch
79- run : python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
80-
81- - name : Install transformers
82- run : |
83- git clone https://github.com/huggingface/transformers.git
84- cd transformers
85- pip install -e .
86- cd ..
87-
88- - name : Install requirements
89- run : python -m pip install -r requirements.txt
90-
91- - name : Install requirements dev
92- run : python -m pip install -r requirements-dev.txt
93-
94- - name : Cache pip
95- uses : actions/cache@v4
96- with :
97- path : ~/.cache/pip
98- key : ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
99- restore-keys : |
100- ${{ runner.os }}-pip-
101- ${{ runner.os }}-
102-
103- - name : pip freeze
104- run : python -m pip freeze
105-
106- - name : run tests
62+ - name : run backend tests
10763 run : |
10864 pip install pytest
10965 export PYTHONPATH=.
You can’t perform that action at this time.
0 commit comments