name: Verify on: push: branches: [main] pull_request: workflow_dispatch: permissions: contents: read jobs: test: # Fork code may run on GitHub-hosted runners, never the trusted Gitea runner. if: github.server_url == 'https://github.com' || github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: persist-credentials: false - uses: https://github.com/actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 with: python-version: '3.13' - run: python -m pip install pytest==9.1.1 - run: python -m pytest -q - run: git diff --check