Skip to content

Commit 40fe93d

Browse files
authored
Merge pull request #25 from intercreate/poetry/update
Poetry/update
2 parents 92cd2d8 + be90f42 commit 40fe93d

File tree

5 files changed

+565
-513
lines changed

5 files changed

+565
-513
lines changed

.github/workflows/build.yaml

+43-38
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,55 @@ permissions:
55
on:
66
release:
77
types: [published]
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
812

913
jobs:
1014
build:
1115
name: Build executable 🔨
1216
strategy:
1317
matrix:
14-
os: [ubuntu-latest, windows-latest]
18+
os: [ubuntu-latest, windows-latest, macos-latest]
1519
runs-on: ${{ matrix.os }}
1620

1721
steps:
18-
- uses: actions/checkout@v4
19-
20-
- run: |
21-
git fetch --prune --unshallow --tags
22-
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
23-
24-
- run: pipx install poetry
25-
26-
- uses: actions/setup-python@v4
27-
with:
28-
python-version: "3.12"
29-
cache: 'poetry'
30-
31-
- run: poetry install
32-
33-
- if: matrix.os == 'ubuntu-latest'
34-
run: |
35-
shopt -s expand_aliases
36-
. ./envr.ps1
37-
build
38-
39-
- if: matrix.os == 'windows-latest'
40-
run: |
41-
. ./envr.ps1
42-
build
43-
44-
- name: Get name of the portable build
45-
id: get_name
46-
shell: bash
47-
run: echo "BUILD_NAME=$(ls dist | grep smpmgr-.*\.zip)" >> $GITHUB_OUTPUT
48-
49-
- name: Upload portable build 🚀
50-
uses: svenstaro/upload-release-action@v2
51-
with:
52-
repo_token: ${{ secrets.GITHUB_TOKEN }}
53-
file: dist/${{ steps.get_name.outputs.BUILD_NAME }}
54-
tag: ${{ github.ref }}
22+
- uses: actions/checkout@v4
23+
24+
- run: |
25+
git fetch --prune --unshallow --tags
26+
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
27+
28+
- run: pipx install poetry
29+
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.12"
33+
cache: "poetry"
34+
35+
- run: poetry install
36+
37+
- if: matrix.os != 'windows-latest'
38+
run: |
39+
shopt -s expand_aliases
40+
. ./envr.ps1
41+
build
42+
43+
- if: matrix.os == 'windows-latest'
44+
run: |
45+
. ./envr.ps1
46+
build
47+
48+
- name: Get name of the portable build
49+
id: get_name
50+
shell: bash
51+
run: echo "BUILD_NAME=$(ls dist | grep smpmgr-.*\.zip)" >> $GITHUB_OUTPUT
52+
53+
- name: Upload portable build 🚀
54+
if: github.event_name == 'release' && github.event.action == 'published'
55+
uses: svenstaro/upload-release-action@v2
56+
with:
57+
repo_token: ${{ secrets.GITHUB_TOKEN }}
58+
file: dist/${{ steps.get_name.outputs.BUILD_NAME }}
59+
tag: ${{ github.ref }}

.github/workflows/test.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: Test
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
pull_request:
6-
branches: [ main ]
6+
branches: [main]
77

88
jobs:
99
tests:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.10", "3.11", "3.12"]
13+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1414

1515
steps:
1616
- uses: actions/checkout@v4
1717

1818
- run: pipx install poetry
1919

2020
- name: Setup Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
cache: 'poetry'
25-
24+
cache: "poetry"
25+
2626
- run: poetry install
2727

2828
- name: Test

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ Python environment setup, then it is **strongly recommended** to install `smpmgr
4343

4444
### Install Dependencies
4545

46-
- python >=3.10, <3.13
4746
- poetry: https://python-poetry.org/docs/#installation
4847

4948
### Create the venv

0 commit comments

Comments
 (0)