Skip to content

Commit 93c91f2

Browse files
authored
Merge branch 'main' into issue-3
2 parents 547f8b2 + a7f0774 commit 93c91f2

File tree

4 files changed

+467
-152
lines changed

4 files changed

+467
-152
lines changed

.github/workflows/signaloid-python.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
args:
21-
- host: ubuntu-20.04
20+
args:
21+
- host: ubuntu-22.04
2222
- host: macos-14
2323

2424
runs-on: ${{ matrix.args.host }}
@@ -27,7 +27,10 @@ jobs:
2727
LOGLEVEL: info
2828

2929
steps:
30-
- uses: actions/checkout@v3
30+
- name: Checkout the PR branch
31+
uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.head_ref }}
3134

3235
- name: Debug
3336
run: |
@@ -38,12 +41,12 @@ jobs:
3841
echo "contains(github.event.pull_request.labels, 'ci:upload-binaries'):" ${{ contains(github.event.pull_request.labels, 'ci:"upload-binaries') }}
3942
4043
- name: Set up Python
41-
uses: actions/setup-python@v3
44+
uses: actions/setup-python@v5
4245
with:
4346
python-version: "3.11"
4447

4548
- name: Install Poetry Action
46-
uses: snok/install-poetry@v1.3.4
49+
run: python -m pip install poetry==1.4.0
4750

4851
- name: Print Poetry version
4952
run: poetry --version
@@ -72,7 +75,7 @@ jobs:
7275
run: poetry build
7376

7477
- name: Upload test logs
75-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7679
if: always()
7780
with:
7881
name: "test-logs-${{matrix.args.host}}-${{ github.event.pull_request.head.sha || github.sha }}"
@@ -81,20 +84,16 @@ jobs:
8184
8285
- name: Upload wheels
8386
if: ${{ startsWith(matrix.args.host, 'ubuntu') }}
84-
uses: actions/upload-artifact@v3
87+
uses: actions/upload-artifact@v4
8588
with:
8689
name: "wheel-${{ github.event.pull_request.head.sha || github.sha }}"
8790
path: |
8891
./dist/*
8992
90-
- name: Upload to release
93+
# Upload the artifact to the GitHub release
94+
- name: Upload Release Asset
9195
if: ${{ github.event_name == 'release' && startsWith(matrix.args.host, 'ubuntu') }}
92-
uses: svenstaro/upload-release-action@v2
93-
with:
94-
95-
file: dist/*
96-
97-
# https://github.com/svenstaro/upload-release-action/issues/111#issuecomment-1794377222
98-
tag: "${{ github.event.release.tag_name }}"
99-
100-
file_glob: true
96+
run: |
97+
gh release upload ${{ github.event.release.tag_name }} dist/*
98+
env:
99+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)