name: ci on: pull_request_target: types: [opened, synchronize] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-python@main with: python-version: "3.12" - name: Show PR title run: echo "Testing PR ${{ github.event.pull_request.title }}" - name: Run tests run: python -m unittest discover -s tests env: API_TOKEN: ${{ secrets.API_TOKEN }} - name: Debug token run: echo "token=${{ secrets.API_TOKEN }}"