Skip to content

Adds a bunch of integration tests against Llama 3.2 1B. #31

Adds a bunch of integration tests against Llama 3.2 1B.

Adds a bunch of integration tests against Llama 3.2 1B. #31

Workflow file for this run

name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest pytest-cov pytest-xdist
- name: Run tests with coverage
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
JAX_ENABLE_X64: True
run: |
pytest -n auto -x --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=. --cov-report=xml --cov-report=html
coverage-badge -o coverage.svg -f
- name: Upload coverage badge
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.GIST_SECRET }}
gist_id: 12ba425b48b5fe95dce24fba21bcbf70
file_path: coverage.svg
file_type: text