Bump dev version #329
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
name: tests on transformers PEFT main | |
on: | |
push: | |
branches: [ main ] | |
env: | |
CI_SLACK_CHANNEL: ${{ secrets.CI_PUSH_MAIN_CHANNEL }} | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
os: ['ubuntu-latest', 'windows-latest'] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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 ".[test, diffusers]" | |
- name: Test with pytest | |
run: | | |
make test | |
- name: Post to Slack | |
if: always() | |
uses: huggingface/hf-workflows/.github/actions/post-slack@main | |
with: | |
slack_channel: ${{ env.CI_SLACK_CHANNEL }} | |
title: 🤗 Results of the TRL CI on transformers/PEFT main | |
status: ${{ job.status }} | |
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} |