Add smoke tests to CI workflow for verifying build artifacts #1200
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check newsfragment | |
| permissions: {} | |
| on: | |
| pull_request: | |
| types: [labeled, unlabeled, opened, synchronize] | |
| branches: | |
| - main | |
| jobs: | |
| check-newsfragment: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip newsfragment') }} | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Check newsfragments | |
| run: | | |
| if git diff --name-only origin/main | grep -v '/_tests/' | grep 'src/trio/'; then | |
| git diff --name-only origin/main | grep 'newsfragments/' || exit 1 | |
| fi |