Skip to content

Commit 8a95d3e

Browse files
committed
ci
1 parent 0949220 commit 8a95d3e

File tree

1 file changed

+1
-45
lines changed

1 file changed

+1
-45
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -59,51 +59,7 @@ jobs:
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=.

0 commit comments

Comments
 (0)