Use FunctionalInterface
for Python function.
#53
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 Snippets in GraalPy Guides | |
on: | |
push: | |
paths: | |
- 'graalpy/**' | |
- '.github/workflows/graalpy-check-snippets.yml' | |
pull_request: | |
paths: | |
- 'graalpy/**' | |
- '.github/workflows/graalpy-check-snippets.yml' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: graalpy-24.1 | |
- name: Install dependencies | |
run: | | |
python -m pip install -r .github/scripts/requirements.txt | |
- name: Check README snippets | |
run: find graalpy -name "README.md" -exec python .github/scripts/check-snippets.py "{}" "+" |