File tree Expand file tree Collapse file tree 3 files changed +44
-31
lines changed Expand file tree Collapse file tree 3 files changed +44
-31
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
strategy :
11
11
matrix :
12
- python-version : ["3.11", "3.12"]
12
+ python-version : ["3.11", "3.12", "3.13" ]
13
13
steps :
14
14
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
15
15
with :
16
16
fetch-depth : 0
17
- - name : Setup Python ${{ matrix.python-version }}
18
- uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
19
- with :
20
- python-version : ${{ matrix.python-version }}
21
17
- name : Run pre-commit (Python ${{ matrix.python-version }})
22
- uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
18
+ uses : stackabletech/actions/run- pre-commit@5901c3b1455488820c4be367531e07c3c3e82538 # v0.4.0
23
19
with :
24
- extra_args : " --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} "
20
+ python-version : ${{ matrix.python-version }}
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
+ name : Package wheel
11
12
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- python-version : ["3.12"]
15
13
steps :
16
14
- uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
17
- - name : Set up Python ${{ matrix.python-version }}
15
+ - name : Set up Python
18
16
uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
19
17
with :
20
- python-version : ${{ matrix.python-version }}
18
+ python-version : " 3.13.0 "
21
19
- name : Install publish dependencies
22
20
run : |
23
- python -m pip install --upgrade pip
24
- pip install '.[publish]'
21
+ python -m pip install --upgrade pip build
25
22
- name : Build and test wheel
26
23
run : |
27
24
rm -rf dist/
28
25
python -m build --sdist --wheel .
29
- twine check dist/*
30
- - name : Publish
31
- run : |
32
- twine upload --non-interactive --verbose --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} dist/*
26
+ - name : Store wheel
27
+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
28
+ with :
29
+ name : beku-stackabletech-package
30
+ path : dist/
31
+ pypi-publish :
32
+ name : Upload to PyPI
33
+ needs :
34
+ - build
35
+ runs-on : ubuntu-latest
36
+ environment :
37
+ name : pypi
38
+ url : https://pypi.org/p/beku-stackabletech
39
+ permissions :
40
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
41
+ steps :
42
+ - name : Download wheel
43
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
44
+ with :
45
+ name : beku-stackabletech-package
46
+ path : dist/
47
+ - name : Publish distribution 📦 to PyPI
48
+ uses : pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
Original file line number Diff line number Diff line change
1
+ ---
1
2
name : Test
2
3
3
4
on : [push]
7
8
runs-on : ubuntu-latest
8
9
strategy :
9
10
matrix :
10
- python-version : ["3.11", "3.12"]
11
+ python-version : ["3.11", "3.12", "3.13" ]
11
12
steps :
12
- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
13
- - name : Set up Python ${{ matrix.python-version }}
14
- uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
15
- with :
16
- python-version : ${{ matrix.python-version }}
17
- - name : Install test dependencies
18
- run : |
19
- python -m pip install --upgrade pip
20
- pip install --editable .
21
- - name : Run unit tests
22
- run : |
23
- python -m unittest discover -v -s src/
13
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
14
+ - name : Set up Python ${{ matrix.python-version }}
15
+ uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
16
+ with :
17
+ python-version : ${{ matrix.python-version }}
18
+ - name : Install test dependencies
19
+ run : |
20
+ python -m pip install --upgrade pip
21
+ pip install --editable .
22
+ - name : Run unit tests
23
+ run : |
24
+ python -m unittest discover -v -s src/
You can’t perform that action at this time.
0 commit comments