Skip to content

Error handling and tests #24

Error handling and tests

Error handling and tests #24

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: Python application
on:
workflow_call:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
actions: read
contents: read
security-events: write
jobs:
call-workflow:
uses: ISISComputingGroup/reusable-workflows/.github/workflows/linters.yml@main
with:
compare-branch: origin/main
python-ver: '3.12'
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Test with pytest
run: uv run pytest tests