Styx compile #349
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: Styx compile | |
# This action works with pull requests and pushes | |
on: | |
workflow_run: | |
workflows: ["Format Descriptors"] | |
types: | |
- completed | |
jobs: | |
styx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Checkout styx | |
uses: actions/checkout@v4 | |
with: | |
repository: 'childmindresearch/styx' | |
path: 'styx' | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: styx/pyproject.toml | |
cache: poetry | |
- name: Install styx | |
run: poetry install --directory=styx | |
- name: Set up Git | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "GitHub Actions" | |
- name: Compile | |
run: | | |
rm -rf python/src/ | |
mkdir -p python/src/niwrap/ | |
poetry --directory styx run python build.py | |
git add python/ | |
git add packages/ | |
git add README.md | |
git diff --quiet HEAD || git commit -m "Compile" | |
git push |