Skip to content
Open

Fix CI #2143

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/cpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: CPU tests

on:
push:
branches: [main]
pull_request_target:
branches: [main]
types: [opened, reopened, ready_for_review, labeled, synchronize]
branches: [main, pwgardipee/fix-ci-2]
pull_request: {} # todo
workflow_dispatch: {}

Expand Down Expand Up @@ -100,6 +97,11 @@ jobs:
cache-dependency-path: pyproject.toml
cache: "pip"

# - name: Debug with SSH
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true

# Add caching for HF models and tokenizers
- name: HF cache
uses: actions/cache@v4
Expand All @@ -125,7 +127,9 @@ jobs:
- name: Run tests
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: pytest -v litgpt/ tests/ --timeout=180 --durations=100
LIGHTNING_USER_ID: ${{ secrets.LIGHTNING_USER_ID }}
LIGHTNING_API_KEY: ${{ secrets.LIGHTNING_API_KEY }}
run: pytest -v litgpt/ tests/test_tokenizer.py::test_tokenizer_against_hf --timeout=600 --durations=100 -s

- name: Show cache
run: |
Expand Down
Loading
Loading