Skip to content

Commit 199691c

Browse files
committed
ci: concurrency flag & default python version
1 parent d70c149 commit 199691c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ on:
66
types: [released]
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }}
11+
cancel-in-progress: true
12+
13+
env:
14+
DEFAULT_PYTHON: "3.12"
15+
916
jobs:
1017
build:
1118
name: πŸ”¨ Build distribution
1219
runs-on: ubuntu-latest
1320
steps:
1421
- uses: actions/checkout@v4
15-
- name: πŸ— Set up Python 3.10
22+
- name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
1623
uses: actions/setup-python@v5
1724
with:
18-
python-version: "3.10"
25+
python-version: "${{ env.DEFAULT_PYTHON }}"
1926
- name: πŸ”¨ Build distribution
2027
uses: OctoPrint/actions/build-dist@main
2128
with:
@@ -26,10 +33,10 @@ jobs:
2633
runs-on: ubuntu-latest
2734
steps:
2835
- uses: actions/checkout@v4
29-
- name: πŸ— Set up Python 3.10
36+
- name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
3037
uses: actions/setup-python@v5
3138
with:
32-
python-version: "3.10"
39+
python-version: "${{ env.DEFAULT_PYTHON }}"
3340
- name: πŸ— Set up pre-commit
3441
run: |
3542
pip install pre-commit

0 commit comments

Comments
Β (0)