File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 27
27
poetry config pypi-token.testpypi '${{ secrets.TESTPYPI_API_TOKEN }}'
28
28
poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'
29
29
- name : Publish package
30
- run : python publish.py
30
+ run : poetry run task publish
Original file line number Diff line number Diff line change 11
11
test :
12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
- fail-fast : true
14
+ fail-fast : false
15
15
matrix :
16
16
os :
17
17
- ubuntu-latest
30
30
cache : poetry
31
31
- name : Setup
32
32
run : |
33
- DOWNLOAD_LATEST_ONLY=1 python publish.py
34
33
poetry install --no-interaction
34
+ poetry run task download-latest-jar
35
35
- name : Test
36
36
run : |
37
37
poetry run task test
Original file line number Diff line number Diff line change @@ -28,24 +28,23 @@ poetry shell
28
28
task lint
29
29
```
30
30
31
- ## Fetch latest jar file and run tests
31
+ ## Fetch latest jar file
32
32
33
33
``` bash
34
34
# in venv:
35
- DOWNLOAD_LATEST_ONLY=1 python publish.py
36
- task test
35
+ task download-latest-jar
37
36
```
38
37
39
38
## Run tests for all unpublished versions without publishing
40
39
41
40
``` bash
42
41
# in venv:
43
- DRYRUN=1 python publish.py
42
+ task test-unpublished-versions
44
43
```
45
44
46
45
## Publish all unpublished versuibs to PyPI (for CI)
47
46
48
47
``` bash
49
48
# in venv:
50
- python publish.py
49
+ task publish
51
50
```
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ show_error_codes = true
82
82
strict = true
83
83
84
84
[tool .taskipy .tasks ]
85
+ download-latest-jar = " DOWNLOAD_LATEST_ONLY=1 task publish"
85
86
test = " pytest"
87
+ test-unpublished-versions = " DRYRUN=1 task publish"
86
88
lint = " pre-commit run -a"
89
+ publish = " python publish.py"
87
90
profile = " python -m cProfile"
You can’t perform that action at this time.
0 commit comments