-
Notifications
You must be signed in to change notification settings - Fork 11
chore: Update pyproject & ci tasks to current SnakeDeploy template #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f9432f8
e77f45a
9f683aa
e0d18f0
40c24c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # SCM syntax highlighting & preventing 3-way merges | ||
| pixi.lock merge=binary linguist-language=YAML linguist-generated=true -diff |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,45 +5,42 @@ on: | |
|
|
||
| name: release-please | ||
|
|
||
| env: | ||
| PYTHON_VERSION: "3.11" | ||
|
|
||
| jobs: | ||
| release-please: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| release_created: ${{ steps.release.outputs.release_created }} | ||
| steps: | ||
| - uses: googleapis/release-please-action@v4 | ||
| - uses: GoogleCloudPlatform/release-please-action@v3 | ||
| id: release | ||
| with: | ||
| release-type: python | ||
| package-name: snakemake-executor-plugin-cluster-generic | ||
| token: ${{ secrets.RELEASE_PLEASE_PR_CI_TOKEN }} | ||
|
jonasfreimuth marked this conversation as resolved.
|
||
|
|
||
| publish: | ||
| runs-on: ubuntu-latest | ||
| needs: release-please | ||
| if: ${{ needs.release-please.outputs.release_created }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Check out the code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| - name: Setup pixi | ||
| uses: prefix-dev/setup-pixi@v0 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
| - name: Install poetry | ||
| run: pip install poetry | ||
| cache: true | ||
| python-version: ${{ env.PYTHON_VERSION }} | ||
|
Comment on lines
+32
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: No. If you want a specific Python version, set it in your Pixi environment (e.g., Sources: [1], [2] Remove the unsupported The 🤖 Prompt for AI Agents |
||
|
|
||
| - name: Determine dependencies | ||
| run: poetry lock | ||
| - name: Build source and wheel distribution + check build | ||
| run: | | ||
| pixi run -e dev check-build | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: poetry | ||
|
|
||
| - name: Install Dependencies using Poetry | ||
| run: poetry install | ||
|
|
||
| - name: Publish to PyPi | ||
| env: | ||
| PYPI_USERNAME: __token__ | ||
| PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
| run: poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD | ||
| user: __token__ | ||
| password: ${{ secrets.PYPI_TOKEN }} | ||
Uh oh!
There was an error while loading. Please reload this page.