File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,23 +13,40 @@ jobs:
1313 needs : build
1414 uses : ewoks-kit/.github/.github/workflows/python-tests.yml@main
1515
16- # Run linter / checks
17- checks :
18- uses : ewoks-kit/.github/.github/workflows/python-check.yml@main
16+ # Publish package to TestPyPI
17+ publish-testpypi :
18+ needs : tests
19+ runs-on : ubuntu-latest
20+ environment :
21+ name : release
22+ permissions :
23+ id-token : write
24+ steps :
25+ - uses : ewoks-kit/.github/.github/actions/setup-python-package@main
26+ - uses : pypa/gh-action-pypi-publish@release/v1
27+ with :
28+ repository-url : https://test.pypi.org/legacy/
1929
20- # Build documentation
21- docs :
22- needs : build
23- uses : ewoks-kit/.github/.github/workflows/python-docs.yml@main
30+ # Publish package to PyPI
31+ publish-pypi :
32+ needs : tests
33+ runs-on : ubuntu-latest
34+ environment :
35+ name : release
36+ permissions :
37+ id-token : write
38+ steps :
39+ - uses : ewoks-kit/.github/.github/actions/setup-python-package@main
40+ - uses : pypa/gh-action-pypi-publish@release/v1
2441
25- # Publish package
26- publish :
27- uses : ewoks-kit/.github/.github/workflows/python- publish.yml@main
28- needs :
29- - tests
30- - checks
31- - docs
32- with :
33- twine-username : " __token__ "
34- twine-password : ${{ secrets.PYPI_TOKEN }}
35- test-twine-password : ${{ secrets.TEST_PYPI_TOKEN }}
42+ # Tag
43+ tag-release :
44+ needs : publish-pypi
45+ runs-on : ubuntu-latest
46+ permissions :
47+ contents : write
48+ steps :
49+ - uses : ewoks-kit/.github/.github/actions/setup-python-package@main
50+ - uses : ewoks-kit/.github/.github/actions/tag-release@main
51+ with :
52+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66 - main
77 pull_request :
88 workflow_dispatch :
9+ workflow_call :
910
1011jobs :
1112 # Build Python package
1617 tests :
1718 needs : build
1819 uses : ewoks-kit/.github/.github/workflows/python-tests.yml@main
20+ # with:
21+ # os: ${{ matrix.os }}
22+ # python-version: ${{ matrix.python-version }}
23+ # pytest-args: ${{ matrix.pytest-args || '' }}
24+ # strategy:
25+ # fail-fast: false
26+ # matrix:
27+ # include:
28+ # - os: ubuntu-latest
29+ # python-version: "3.8"
30+ # pytest-args: >-
31+ # -v -ra -W error
32+ # -W ignore::DeprecationWarning:silx.resources
33+ #
34+ # - os: ubuntu-latest
35+ # python-version: "3.12"
36+ #
37+ # - os: windows-latest
38+ # python-version: "3.12"
39+ #
40+ # - os: macos-latest
41+ # python-version: "3.12"
1942
2043 # Run linter / checks
2144 checks :
You can’t perform that action at this time.
0 commit comments