From f2e362656cee27fd904e1e69686fd03df2c781b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Gallou=C3=A9dec?= <45557362+qgallouedec@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:11:41 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=96=EF=B8=8F=20Add=20`tests=5Flatest.yml`?= =?UTF-8?q?=20workflow=20file=20(#2457)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add tests_latest.yml workflow file * don't check the branch * Fix workflow --- .github/workflows/tests_latest.yml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/tests_latest.yml diff --git a/.github/workflows/tests_latest.yml b/.github/workflows/tests_latest.yml new file mode 100644 index 0000000000..3441de5461 --- /dev/null +++ b/.github/workflows/tests_latest.yml @@ -0,0 +1,45 @@ +name: Tests latest TRL release with dev dependencies + +on: + schedule: + - cron: '0 0 * * *' # Runs daily at midnight UTC + + workflow_dispatch: + +env: + TQDM_DISABLE: 1 + CI_SLACK_CHANNEL: ${{ secrets.CI_PUSH_MAIN_CHANNEL }} + +jobs: + tests: + name: Tests latest TRL release with dev dependencies + runs-on: 'ubuntu-latest' + steps: + - name: Git checkout + uses: actions/checkout@v4 + with: { ref: v0.12-release } + - 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 + uses: huggingface/hf-workflows/.github/actions/post-slack@main + with: + slack_channel: ${{ env.CI_SLACK_CHANNEL }} + title: Results of latest TRL with Python 3.12 on ubuntu-latest with dev dependencies + status: ${{ job.status }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}