Skip to content

Use reusable workflows in pytest.yaml #7

Use reusable workflows in pytest.yaml

Use reusable workflows in pytest.yaml #7

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run PyTest
on: [push, pull_request]
permissions:
contents: read
jobs:
run_lint:
uses: lsst/rubin_workflows/.github/workflows/lint.yaml@main
run_pytest:
runs-on: ubuntu-latest
steps:
- name: Editable mode install
run: |
python -m pip install uv
uv pip install pytest
uv pip install -e .
- name: Test with pytest
run: |
pytest