File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 poetry config pypi-token.testpypi '${{ secrets.TESTPYPI_API_TOKEN }}'
2828 poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'
2929 - name : Publish package
30- run : python publish.py
30+ run : poetry run task publish
Original file line number Diff line number Diff line change 1111 test :
1212 runs-on : ${{ matrix.os }}
1313 strategy :
14- fail-fast : true
14+ fail-fast : false
1515 matrix :
1616 os :
1717 - ubuntu-latest
3030 cache : poetry
3131 - name : Setup
3232 run : |
33- DOWNLOAD_LATEST_ONLY=1 python publish.py
3433 poetry install --no-interaction
34+ poetry run task download-latest-jar
3535 - name : Test
3636 run : |
3737 poetry run task test
Original file line number Diff line number Diff line change @@ -28,24 +28,23 @@ poetry shell
2828task lint
2929```
3030
31- ## Fetch latest jar file and run tests
31+ ## Fetch latest jar file
3232
3333``` bash
3434# in venv:
35- DOWNLOAD_LATEST_ONLY=1 python publish.py
36- task test
35+ task download-latest-jar
3736```
3837
3938## Run tests for all unpublished versions without publishing
4039
4140``` bash
4241# in venv:
43- DRYRUN=1 python publish.py
42+ task test-unpublished-versions
4443```
4544
4645## Publish all unpublished versuibs to PyPI (for CI)
4746
4847``` bash
4948# in venv:
50- python publish.py
49+ task publish
5150```
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ show_error_codes = true
8282strict = true
8383
8484[tool .taskipy .tasks ]
85+ download-latest-jar = " DOWNLOAD_LATEST_ONLY=1 task publish"
8586test = " pytest"
87+ test-unpublished-versions = " DRYRUN=1 task publish"
8688lint = " pre-commit run -a"
89+ publish = " python publish.py"
8790profile = " python -m cProfile"
You can’t perform that action at this time.
0 commit comments