forked from huggingface/trl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests on transformers peft main (huggingface#1328)
- Loading branch information
1 parent
758721b
commit 9d21792
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: tests on transformers PEFT main | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11'] | ||
os: ['ubuntu-latest', 'windows-latest'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: | | ||
setup.py | ||
requirements.txt | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
# install PEFT & transformers from source | ||
pip install -U git+https://github.com/huggingface/peft.git | ||
pip install -U git+https://github.com/huggingface/transformers.git | ||
# cpu version of pytorch | ||
pip install -e ".[test, diffusers]" | ||
- name: Test with pytest | ||
run: | | ||
make test |