Skip to content

Commit

Permalink
add tests on transformers peft main (huggingface#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada authored and Andrew Lapp committed May 10, 2024
1 parent 758721b commit 9d21792
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests-main.yml
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

0 comments on commit 9d21792

Please sign in to comment.