Files
docs/.github/workflows/_test.yml
T
Mason Daugherty c19af5e714 ci: shallow clone in all workflows (#3173)
Add `fetch-depth: 1` to all `actions/checkout@v6` steps across CI
workflows. Full git history isn't needed for any of these jobs — shallow
clones cut checkout time and reduce runner disk/network usage.
2026-03-17 16:49:40 -04:00

52 lines
1.2 KiB
YAML

name: test
on:
workflow_call:
inputs:
working-directory:
required: true
type: string
description: "From which folder this pipeline executes"
python-version:
required: true
type: string
description: "Python version to use"
env:
UV_FROZEN: "true"
UV_NO_SYNC: "true"
jobs:
build:
defaults:
run:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
timeout-minutes: 20
name: "make test #${{ inputs.python-version }}"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up Python ${{ inputs.python-version }} + uv
uses: "./.github/actions/uv_setup"
id: setup-python
with:
python-version: ${{ inputs.python-version }}
- name: Install dependencies
shell: bash
run: uv sync --group test
- name: Run core tests
shell: bash
run: |
make test
- name: Run Integration tests
# Only run this is the working-directory is server
if: ${{ inputs.working-directory == './libs/server' }}
shell: bash
run: |
make test_integration