Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork669
Create fix_bash_completion_empty.rst#3053
This file contains hidden or 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:CI Tests | |
on: | |
push: | |
branches: | |
-main | |
pull_request: | |
branches: | |
-main | |
workflow_dispatch: | |
inputs: | |
tmate_debug_enabled: | |
description:'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required:false | |
default:false | |
concurrency: | |
group:${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress:true | |
permissions: | |
contents:read | |
jobs: | |
ci: | |
runs-on:${{ matrix.os }} | |
env: | |
UV_CACHE_DIR:.cache/uv | |
DEFAULT_PYTHON_VERSION:3.12 | |
strategy: | |
fail-fast:false | |
matrix: | |
os: | |
-ubuntu-latest | |
-macOS-latest | |
-windows-latest | |
python-version: | |
-"3.10" | |
-"3.11" | |
-"3.12" | |
-"3.13" | |
name:Test Python ${{ matrix.python-version }} ${{ matrix.os }} | |
steps: | |
-uses:actions/checkout@v4 | |
-name:Set up Python | |
uses:actions/setup-python@v5 | |
with: | |
python-version:${{ matrix.python-version }} | |
-uses:yezz123/setup-uv@v4 | |
-name:set current week | |
run:echo WEEK=$(date +%V) >>$GITHUB_ENV | |
shell:bash | |
-name:Cache uv pip for a week | |
id:cache-uv | |
uses:actions/cache@v4 | |
with: | |
path:${{ env.UV_CACHE_DIR }} | |
key:${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}-${{ env.WEEK }} | |
restore-keys:${{ runner.os }}-uv- | |
-name:Install dependencies | |
run:uv pip install --system -e ".[test]" | |
-name:Setup tmate session | |
uses:mxschmitt/action-tmate@v3 | |
if:${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tmate_debug_enabled }} | |
timeout-minutes:15 | |
-name:Run QA Checks | |
if:${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }} | |
run:python -m xonsh run-tests.xsh validate-news-items | |
-name:Run tests | |
if:${{ !startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }} | |
run:| | |
python -m pip install . --no-deps | |
python -m xonsh run-tests.xsh test -- --timeout=240 | |
-name:Run tests with coverage | |
if:${{ startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }} | |
run:| | |
python -m pip install -e . --no-deps | |
python -m xonsh run-tests.xsh test --report-coverage -- --timeout=240 | |