Skip to content

release: v2.4.9 — hide menubar host Python from Dock #57

release: v2.4.9 — hide menubar host Python from Dock

release: v2.4.9 — hide menubar host Python from Dock #57

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
env:
TRANSFORMERS_OFFLINE: "1"
HF_HUB_OFFLINE: "1"
HF_DATASETS_OFFLINE: "1"
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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint (ruff)
run: ruff check .
- name: Run tests
run: pytest tests/ -q --tb=short
- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: pytest-log-py${{ matrix.python-version }}
path: |
.pytest_cache/
pytest.log
if-no-files-found: ignore