Updates in VisionLanguageCollator
and in coco_captions
#1450
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pre-review Tests" | |
on: [pull_request] | |
jobs: | |
static-checks: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Checkout using commit hash to make "no-commit-to-branch" test pass. | |
ref: ${{ github.sha }} | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "pyproject.toml" | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Dependencies | |
run: | | |
# Install in system python as we're in a sandbox env | |
# Install in verbose mode to see what's going on | |
uv pip install -e '.[all]' --system --prerelease=allow | |
- name: Cache pre-commit | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run pre-commit checks | |
run: | | |
pre-commit run --all-files --show-diff-on-failure | |
- name: Run tests | |
run: | | |
cd ./tests/ | |
pytest -s |