File tree Expand file tree Collapse file tree 3 files changed +44
-21
lines changed Expand file tree Collapse file tree 3 files changed +44
-21
lines changed Original file line number Diff line number Diff line change 1+ name : Init python and poetry
2+ description : Installs python and poetry
3+
4+ inputs :
5+ python-version :
6+ description : Version of python to use
7+ required : true
8+ default : 3.10
9+ poetry-version :
10+ description : Version of poetry to install
11+ required : true
12+ default : 1.6.1
13+
14+ runs :
15+ - name : Set up Python ${{ inputs.python-version }}
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ${{ inputs.python-version }}
19+
20+ - name : Set up Poetry ${{ inputs.poetry-version }}
21+ 22+ with :
23+ poetry-version : ${{ inputs.poetry-version }}
Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ runs:
1919 with :
2020 submodules : recursive
2121
22- - name : Set up Python ${{ inputs.python-version }}
23- uses : actions/setup-python@v2
24- with :
25- python-version : ${{ inputs.python-version }}
26-
27- - name : Set up Poetry ${{ inputs.poetry-version }}
28- 22+ -name : Init python and poetry
23+ uses : ./.github/actions/init-poetry
2924 with :
25+ python-version : ${{ inputs.python-version }}
3026 poetry-version : ${{ inputs.poetry-version }}
3127
3228 - name : Set up cache
Original file line number Diff line number Diff line change 1- name : Publish a release to PyPI
1+ name : Publish a release to TestPyPI
22
33on :
44 push :
77
88jobs :
99 # the tests must pass before release is to be made
10- test :
11- name : Run unit tests on release branch
12- uses : ./.github/workflows/test_on_branch.yml
13- with :
14- branch : release
15- os : ubuntu-22.04
10+ # test:
11+ # name: Run unit tests on release branch
12+ # uses: ./.github/workflows/test_on_branch.yml
13+ # with:
14+ # branch: release
15+ # os: ubuntu-22.04
1616
1717 # then we build to prep for release
1818 build :
1919 name : Build and publish the package to pypi
20- needs : test
20+ # needs: test
2121 runs-on : ubuntu-22.04
2222 steps :
2323 - uses : actions/checkout@v4
2424 with :
2525 submodules : recursive
26- - name : Build and publish to pypi
27- 26+
27+ - name : Init poetry and python
28+ uses : ./.github/actions/init-poetry
2829 with :
29- python_version : " 3.10"
30- poetry_version : " ==1.6.1" # (PIP version specifier syntax)
31- pypi_token : ${{ secrets.PYPI_TOKEN }}
32- repository_name : " testpypi"
30+ python-version : 3.10
31+ poetry-version : 1.6.1
32+
33+ - name : Build package
34+ shell : bash
35+ run : |
36+ poetry build
You can’t perform that action at this time.
0 commit comments