Add missing justfile #22
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: Make sure created plugins work | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint: | |
| name: lint and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: extractions/setup-just@v3 | |
| - name: Install cookiecutter | |
| run: uv pip install --system cookiecutter | |
| - name: Run cookiecutter | |
| run: cookiecutter . --no-input | |
| - name: Init git repo (required for check-manifest) | |
| run: git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git init && git add . && git commit -m 'Initial commit' | |
| working-directory: pretalx-foobar | |
| - name: Install pretalx and plugin | |
| run: uv pip install --system pretalx twine check-manifest build -e ".[dev]" | |
| working-directory: pretalx-foobar | |
| - name: Run linters | |
| run: just fmt-check | |
| working-directory: pretalx-foobar | |
| - name: Run tests | |
| run: just test | |
| working-directory: pretalx-foobar | |
| - name: Run check-manifest | |
| run: check-manifest . | |
| working-directory: pretalx-foobar | |
| - name: Build package | |
| run: python -m build | |
| working-directory: pretalx-foobar | |
| - name: Check package | |
| run: twine check dist/* | |
| working-directory: pretalx-foobar |