diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d58726d30..20e457c7ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,6 +56,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + python -m pip install -U git+https://github.com/huggingface/transformers.git@mueller-trainer-refactor python -m pip install ".[dev]" - name: Test with pytest run: | @@ -68,96 +69,3 @@ jobs: title: Results with Python ${{ matrix.python-version }} on ${{ matrix.os }} with lastest dependencies status: ${{ job.status }} slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - - tests_dev: - name: Tests with dev dependencies - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: '3.12' - cache: "pip" - cache-dependency-path: | - setup.py - requirements.txt - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -U git+https://github.com/huggingface/accelerate.git - python -m pip install -U git+https://github.com/huggingface/datasets.git - python -m pip install -U git+https://github.com/huggingface/transformers.git - python -m pip install ".[dev]" - - name: Test with pytest - run: | - make test - - name: Post to Slack - if: github.ref == 'refs/heads/main' && always() # Check if the branch is main - uses: huggingface/hf-workflows/.github/actions/post-slack@main - with: - slack_channel: ${{ env.CI_SLACK_CHANNEL }} - title: Results with Python 3.12 on ubuntu-latest with dev dependencies - status: ${{ job.status }} - slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - - tests_wo_optional_deps: - name: Tests without optional dependencies - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: '3.12' - cache: "pip" - cache-dependency-path: | - setup.py - requirements.txt - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install ".[test]" - - name: Test with pytest - run: | - make test - - name: Post to Slack - if: github.ref == 'refs/heads/main' && always() # Check if the branch is main - uses: huggingface/hf-workflows/.github/actions/post-slack@main - with: - slack_channel: ${{ env.CI_SLACK_CHANNEL }} - title: Results with Python 3.12 on ubuntu-latest without optional dependencies - status: ${{ job.status }} - slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - - tests_min_versions: - name: Tests with minimum versions - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: '3.12' - cache: "pip" - cache-dependency-path: | - setup.py - requirements.txt - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install accelerate==0.34.0 - python -m pip install datasets==2.21.0 - python -m pip install transformers==4.46.0 - python -m pip install ".[dev]" - - name: Test with pytest - run: | - make test - - name: Post to Slack - if: github.ref == 'refs/heads/main' && always() # Check if the branch is main - uses: huggingface/hf-workflows/.github/actions/post-slack@main - with: - slack_channel: ${{ env.CI_SLACK_CHANNEL }} - title: Results with Python 3.12 on ubuntu-latest with minimum versions - status: ${{ job.status }} - slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} \ No newline at end of file