---
# Automatically build and publish

name: Tests

# yamllint disable-line rule:truthy
on:
    push:
        branches: ['main']
    pull_request:
        branches: ['main']

jobs:
    build:
        name: Run Tests
        runs-on: ubuntu-latest
        permissions:
            id-token: write
        steps:
            - uses: actions/checkout@v4
            - name: Install hatch
              shell: bash
              run: |
                  pip install hatch hatchling
            - name: Run Tests
              shell: bash
              run: |
                  hatch run test

