fix(python): avoid removal of null characters in bindings #9
Workflow file for this run
This file contains 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 CHANGELOG update and run tests | |
on: | |
pull_request: | |
jobs: | |
check-changelog: | |
name: Check if changelog has been updated | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: | | |
PACKAGE_DIFF=$(git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- ./source) | |
PACKAGE_DIFF+=$(git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- ./python) | |
CL_DIFF=$(git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- CHANGELOG.md) | |
if [ "${PACKAGE_DIFF}" ] && ! [ "${CL_DIFF}" ]; then | |
echo "::error file="CHANGELOG.md",title=Check failed::CHANGELOG.md must be updated!" | |
exit 1 | |
fi | |
shell: bash | |
check-skippable-changes: | |
name: Check skippable changes | |
runs-on: ubuntu-latest | |
outputs: | |
skip: ${{ steps.check.outputs.should_skip }} | |
steps: | |
- id: check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
paths_ignore: '["**.md", ".**/**", "**.gitignore", "**.sh"]' | |
test: | |
needs: check-skippable-changes | |
if: ${{ needs.check-skippable-changes.outputs.skip != 'true' }} | |
runs-on: ubuntu-latest | |
name: Run tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
DOCKER_BUILDKIT=1 docker build --target test . | |
shell: bash |