Skip to content

Commit 9df4fd1

Browse files
authored
fix: improve GitHub Actions workflows for packages (#274)
1 parent c6c96c1 commit 9df4fd1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

template/{% if ci == 'github' %}.github{% endif %}/workflows/test.yml.jinja

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: {% if project_type == 'package' %}["3.10", "3.11", "3.12"]{% else %}["{{ python_version }}"]{% endif %}
17+
python-version: {% if project_type == 'package' %}["3.10", "3.12"]{% else %}["{{ python_version }}"]{% endif %}
1818
{%- if project_type == 'package' %}
1919
resolution-strategy: ["highest", "lowest-direct"]
2020
{%- endif %}
2121

22-
name: Python {% raw %}${{{% endraw %} matrix.python-version }}
22+
name: Python {% raw %}${{{% endraw %} matrix.python-version }}{% if project_type == 'package' %} (resolution={% raw %}${{{% endraw %} matrix.resolution-strategy }}){% endif %}
2323

2424
steps:
2525
- name: Checkout

template/{% if ci == 'github' %}.github{% endif %}/workflows/{% if project_type == "package" %}publish.yml{% endif %}.jinja

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ jobs:
1515

1616
- name: Publish package
1717
run: |
18-
uv publish --token "{% raw %}${{ secrets.UV_PUBLISH_TOKEN }}{% endraw %}" --build
18+
uv build
19+
uv publish
20+
env:
21+
UV_PUBLISH_TOKEN: {% raw %}${{ secrets.UV_PUBLISH_TOKEN }}{% endraw %}

0 commit comments

Comments
 (0)