Added first version of custom model. #1912
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 | |
- v*-release | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run_tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- name: Setup Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install lighteval in editable mode | |
run: | | |
pip install -e .[dev,extended_tasks,multilingual] | |
- name: Get cached files | |
uses: actions/cache@v4 | |
id: get-cache | |
with: | |
path: "cache" | |
key: test-cache-HF | |
- name: Test | |
env: | |
HF_TEST_TOKEN: ${{ secrets.HF_TEST_TOKEN }} | |
HF_HOME: "cache/models" | |
HF_DATASETS_CACHE: "cache/datasets" | |
run: | # PYTHONPATH="${PYTHONPATH}:src" HF_DATASETS_CACHE="cache/datasets" HF_HOME="cache/models" | |
python -m pytest --disable-pytest-warnings | |
- name: Write cache | |
uses: actions/cache@v4 | |
with: | |
path: "cache" | |
key: test-cache-HF |