Skip to content

Commit 7b37183

Browse files
committed
Add taskipy tasks
1 parent 3b33964 commit 7b37183

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
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

.github/workflows/test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
14-
fail-fast: true
14+
fail-fast: false
1515
matrix:
1616
os:
1717
- ubuntu-latest
@@ -30,8 +30,8 @@ jobs:
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

DEVELOPMENT.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,23 @@ poetry shell
2828
task 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
```

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ show_error_codes = true
8282
strict = true
8383

8484
[tool.taskipy.tasks]
85+
download-latest-jar = "DOWNLOAD_LATEST_ONLY=1 task publish"
8586
test = "pytest"
87+
test-unpublished-versions = "DRYRUN=1 task publish"
8688
lint = "pre-commit run -a"
89+
publish = "python publish.py"
8790
profile = "python -m cProfile"

0 commit comments

Comments
 (0)