mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-03-30 02:06:17 +00:00
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
42 lines
862 B
YAML
42 lines
862 B
YAML
name: Run Pytest on Pull Request
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13.9"
|
|
|
|
- name: Install uv
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install uv
|
|
|
|
- name: Sync environment with uv
|
|
run: |
|
|
uv sync --extra dev
|
|
|
|
- name: Run tests
|
|
run: |
|
|
uv run pytest --finalize --check-config-side-effect -vs --cov src --cov-report term-missing
|
|
|
|
- name: Upload test artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: optimize-results
|
|
path: tests/testdata/new_optimize_result*
|