Rebuild C files using cython==3.0.11 #105
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
on: | |
schedule: | |
- cron: 0 0 1 * * | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
name: Rebuild .c files with latest Cython | |
jobs: | |
rebuild_c_files: | |
name: Rebuild .c files with latest Cython | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
pip install cython | |
echo "cython_version=$(pip freeze | grep -i cython | cut -d'=' -f3)" >> $GITHUB_ENV | |
- name: Rebuild .c files with latest Cython | |
# From https://github.com/marketplace/actions/create-pr-action: | |
# > executes an arbitrary command and commits the changes to the new pull request | |
uses: technote-space/create-pr-action@v2 | |
with: | |
EXECUTE_COMMANDS: | | |
find jsonobject -iname '*.c' -delete | |
find jsonobject -iname '*.so' -delete | |
python setup.py build_ext --inplace | |
COMMIT_MESSAGE: 'Rebuild C files using cython==${{ env.cython_version }}' | |
PR_BRANCH_NAME: 'cython-${{ env.cython_version }}' | |
PR_TITLE: 'Rebuild C files using cython==${{ env.cython_version }}' |