Skip to content

chore(deps): update pre-commit hook astral-sh/uv-pre-commit to v0.12.9 #7868

chore(deps): update pre-commit hook astral-sh/uv-pre-commit to v0.12.9

chore(deps): update pre-commit hook astral-sh/uv-pre-commit to v0.12.9 #7868

name: ci-test-library
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
changes:
uses: ./.github/workflows/detect-changes.yml
permissions:
contents: read
pull-requests: read
linux:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
target: ["x86_64"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: download test data
run: just download-data
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
# check how to use virtual environment https://stackoverflow.com/q/74668349/4001592
- name: create build virtual environment
run: uv venv .venv
- name: build package
run: uv build
- name: test wheel
run: |
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.whl -- python -c "import xorq; print(f'Successfully imported {xorq.__name__} version {xorq.__version__}')"
# Kept out of the pytest run below, which supplies `packaging` itself.
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.whl -- python python/xorq/tests/check_bare_imports.py
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.whl --with pytest --with pytest-cov -- pytest --import-mode=importlib --cov --cov-report=xml -m "library or xorq"
- name: test source distribution
run: |
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.tar.gz -- python -c "import xorq; print(f'Successfully imported {xorq.__name__} version {xorq.__version__}')"
# Kept out of the pytest run below, which supplies `packaging` itself.
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.tar.gz -- python python/xorq/tests/check_bare_imports.py
uv run --isolated --no-project -p ${{ matrix.python-version }} --with dist/*.tar.gz --with pytest --with pytest-cov -- pytest --import-mode=importlib --cov --cov-report=xml -m "library or xorq"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.5.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: library
fail_ci_if_error: false