Skip to content

Commit 076286d

Browse files
author
Drew Yang
committed
build: 🚧 improving pyproject.yaml and release:build step
1 parent cff5187 commit 076286d

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

‎.github/workflows/release.yaml‎

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,21 @@ jobs:
77
strategy:
88
matrix:
99
include:
10-
- py_ver: "3.9"
11-
distro: debian
12-
image: djbase
10+
- py_ver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1311
env:
1412
PY_VER: ${{matrix.py_ver}}
15-
DISTRO: ${{matrix.distro}}
16-
IMAGE: ${{matrix.image}}
17-
DOCKER_CLIENT_TIMEOUT: "120"
18-
COMPOSE_HTTP_TIMEOUT: "120"
1913
steps:
2014
- uses: actions/checkout@v4
2115
- uses: actions/setup-python@v5
2216
with:
2317
python-version: ${{matrix.py_ver}}
24-
- name: Validate version and release notes
18+
- name: Build pip artifacts
2519
run: |
2620
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
27-
RELEASE_BODY=$(python3 -c \
28-
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
29-
)
3021
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
31-
echo "RELEASE_BODY<<EOF" >> $GITHUB_ENV
32-
echo "$RELEASE_BODY" >> $GITHUB_ENV
33-
echo "EOF" >> $GITHUB_ENV
34-
- name: Build pip artifacts
35-
run: |
3622
python3 -m pip install build
3723
python3 -m build .
38-
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
39-
- if: matrix.py_ver == '3.9' && matrix.distro == 'debian'
40-
name: Add pip artifacts
24+
- name: Add pip artifacts
4125
uses: actions/upload-artifact@v4
4226
with:
4327
name: pip-datajoint-${{env.DJ_VERSION}}

0 commit comments

Comments
 (0)