Add support for AdapterPlus #1680
Workflow file for this run
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: | |
push: | |
branches: ["main"] | |
paths: | |
- ".github/workflows/**" | |
- "src/**" | |
- "examples/**" | |
- "templates/**" | |
- "tests/**" | |
- "utils/**" | |
- "setup.py" | |
pull_request: | |
branches: ["main"] | |
paths: | |
- ".github/workflows/**" | |
- "src/**" | |
- "examples/**" | |
- "templates/**" | |
- "tests/**" | |
- "utils/**" | |
- "setup.py" | |
workflow_dispatch: | |
jobs: | |
check_code_quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
- name: Install | |
run: | | |
pip install torch==2.3 | |
pip install .[quality] | |
- name: Check Quality and Repo Consistency | |
run: | | |
make quality | |
test_adapter_methods: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install | |
run: | | |
pip install torch==2.3 | |
pip install .[sklearn,testing,sentencepiece,torchvision] | |
- name: Test | |
run: | | |
make test-adapter-methods | |
test_adapter_models: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install | |
run: | | |
pip install torch==2.3 | |
pip install .[sklearn,testing,sentencepiece,torchvision] | |
- name: Test | |
run: | | |
make test-adapter-models | |
test_adapter_examples: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install | |
run: | | |
pip install torch==2.3 | |
pip install .[sklearn,testing,sentencepiece,torchvision] | |
pip install conllu seqeval | |
- name: Test Examples | |
run: | | |
make test-examples |