Files
EOS/.github/workflows/pytest.yml
Normann c1b0dc3313 fix: code scanning alert no. 3: Workflow does not contain permissions (#982)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-28 06:58:48 +01:00

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*