Skip to content

chore: ignore personal github settings (#141) #626

chore: ignore personal github settings (#141)

chore: ignore personal github settings (#141) #626

Workflow file for this run

name: Pytest (Fast)
on:
push:
branches:
- main
pull_request:
jobs:
test-build:
name: Build and Inspect Python Package
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/[email protected]
- name: Check uv lock file is current
run: uv lock --check
- uses: hynek/build-and-inspect-python-package@v2
env:
# Pass in dummy version '0.0.0dev0' version to appease dynamic versioning
UV_DYNAMIC_VERSIONING_BYPASS: 0.0.0dev0
- uses: actions/upload-artifact@v4
with:
name: Packages-${{ github.run_id }}
path: |
/tmp/baipp/dist/*.whl
/tmp/baipp/dist/*.tar.gz
pytest-fast:
name: Pytest (Fast)
runs-on: ubuntu-24.04
steps:
# Common steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/[email protected]
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: uv sync --all-extras
- name: Run Pytest with Coverage (Fast Tests Only)
timeout-minutes: 20
run: >
uv run coverage run -m pytest
--durations=5 --exitfirst
-m "not slow"
- name: Print Coverage Report
if: always()
run: uv run coverage report
- name: Create Coverage Artifacts
if: always()
run: |
uv run coverage html -d htmlcov
uv run coverage xml -o htmlcov/coverage.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() && !cancelled()
continue-on-error: true
with:
check_name: "PyTest Results (Fast)"
large_files: true
files: |
build/test-results/**/*.xml
- name: Upload coverage to GitHub Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: fasttest-coverage
path: htmlcov/