Skip to content

Commit

Permalink
Update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Dec 13, 2023
1 parent 9ad5ab2 commit c921726
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests_torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ name: Tests

on:
push:
branches: ["main", "adapters"]
branches: ["main"]
paths:
- ".github/workflows/**"
- "src/**"
- "examples/**"
- "templates/**"
- "tests/**"
- "utils/**"
- "setup.py"
pull_request:
branches: ["main", "adapters"]
branches: ["main"]
paths:
- ".github/workflows/**"
- "src/**"
- "examples/**"
- "templates/**"
- "tests/**"
- "utils/**"
- "setup.py"
workflow_dispatch:

jobs:
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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

0 comments on commit c921726

Please sign in to comment.