Skip to content

Add more hook

Add more hook #3

Workflow file for this run

name: test
on:
push: # Run on pushes to the default branch
branches: [main, quality-fix]
pull_request_target: # Also run on pull requests originated from forks
branches: [main, quality-fix]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
Authorize:
environment: ${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true
Type-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: actions/setup-python@v3
with:
python-version: "3.12"
architecture: "x64"
- run: pip3 install hatch
- run: hatch run tests.py3.12-2.10:type-check