Skip to content

Review huggingface_hub integration #24

Review huggingface_hub integration

Review huggingface_hub integration #24

Workflow file for this run

name: build
on: [pull_request, workflow_dispatch]
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
# Check out the repository code
- uses: actions/checkout@v4
# Set up the specified Python version
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
# Run tests with pytest and generate coverage report
- name: Test with pytest
run: |
python -c "import os; print(os.environ.get('HF_TOKEN', '')[:3])"
pytest