From c921726046a036e62cc339126808371088c5cfc1 Mon Sep 17 00:00:00 2001 From: calpt Date: Wed, 13 Dec 2023 21:19:49 +0100 Subject: [PATCH] Update test workflow --- .github/workflows/tests_torch.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests_torch.yml b/.github/workflows/tests_torch.yml index 8064110ddb..55327524c8 100644 --- a/.github/workflows/tests_torch.yml +++ b/.github/workflows/tests_torch.yml @@ -2,7 +2,7 @@ name: Tests on: push: - branches: ["main", "adapters"] + branches: ["main"] paths: - ".github/workflows/**" - "src/**" @@ -10,8 +10,9 @@ on: - "templates/**" - "tests/**" - "utils/**" + - "setup.py" pull_request: - branches: ["main", "adapters"] + branches: ["main"] paths: - ".github/workflows/**" - "src/**" @@ -19,6 +20,7 @@ on: - "templates/**" - "tests/**" - "utils/**" + - "setup.py" workflow_dispatch: jobs: @@ -37,7 +39,7 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} - name: Install run: | - pip install torch==1.12.1 + pip install torch==2.1.1 pip install .[quality] - name: Check Quality and Repo Consistency run: | @@ -60,9 +62,8 @@ jobs: ${{ runner.os }}-pip- - name: Install run: | - pip install torch==1.12.1 - pip install .[sklearn,testing,sentencepiece,vision] - pip install datasets + pip install torch==2.1.1 + pip install .[sklearn,testing,sentencepiece] - name: Test run: | make test-adapter-methods @@ -84,9 +85,8 @@ jobs: ${{ runner.os }}-pip- - name: Install run: | - pip install torch==1.12.1 - pip install .[sklearn,testing,sentencepiece,vision] - pip install datasets + pip install torch==2.1.1 + pip install .[sklearn,testing,sentencepiece] - name: Test run: | make test-adapter-models