Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srivarra committed Oct 5, 2024
1 parent 3d80939 commit 9087c35
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Dependencies
run: |
uv sync
uv sync --all-extras
- name: Build Package
run: |
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,22 @@ jobs:
key: huggingface-${{ env.cache-name }}
enableCrossOsArchive: true

- name: Set up Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.11"
cache-dependency-path: "**/pyproject.toml"
cache: "pip"
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python
run: |
uv python install 3.11
- name: Install Dependencies and ${{ github.repository }}
run: |
uv sync --all-extras
- name: Check the Example Dataset Cache
run: |
pip install datasets
python ./.github/scripts/get_example_dataset.py
uv run ./.github/scripts/get_example_dataset.py
test:
needs: [get_dataset]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Install Dependencies and ${{ github.repository }}
run: |
uv sync --all-extras --dev
uv sync --all-extras
- name: Run Tests
run: |
Expand Down

0 comments on commit 9087c35

Please sign in to comment.