File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 strategy :
1111 matrix :
12- python-version : ["3.11", "3.12"]
12+ python-version : ["3.11", "3.12", "3.13" ]
1313 steps :
1414 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515 with :
1616 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 }}
2117 - 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
2319 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 88
99jobs :
1010 build :
11+ name : Package wheel
1112 runs-on : ubuntu-latest
12- strategy :
13- matrix :
14- python-version : ["3.12"]
1513 steps :
1614 - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
17- - name : Set up Python ${{ matrix.python-version }}
15+ - name : Set up Python
1816 uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
1917 with :
20- python-version : ${{ matrix.python-version }}
18+ python-version : " 3.13.0 "
2119 - name : Install publish dependencies
2220 run : |
23- python -m pip install --upgrade pip
24- pip install '.[publish]'
21+ python -m pip install --upgrade pip build
2522 - name : Build and test wheel
2623 run : |
2724 rm -rf dist/
2825 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+ ---
12name : Test
23
34on : [push]
78 runs-on : ubuntu-latest
89 strategy :
910 matrix :
10- python-version : ["3.11", "3.12"]
11+ python-version : ["3.11", "3.12", "3.13" ]
1112 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