Add adapter support for X-MOD model #1276
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", "adapters"] | |
paths: | |
- ".github/workflows/**" | |
- "src/**" | |
- "examples/**" | |
- "templates/**" | |
- "tests/**" | |
- "tests_adapters/**" | |
- "utils/**" | |
pull_request: | |
branches: ["main", "adapters"] | |
paths: | |
- ".github/workflows/**" | |
- "src/**" | |
- "examples/**" | |
- "templates/**" | |
- "tests/**" | |
- "tests_adapters/**" | |
- "utils/**" | |
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==1.12.1 | |
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==1.12.1 | |
pip install .[sklearn,testing,sentencepiece,vision] | |
pip install datasets | |
- 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==1.12.1 | |
pip install .[sklearn,testing,sentencepiece,vision] | |
pip install datasets | |
- name: Test | |
run: | | |
make test-adapter-models |