File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 99 publish :
1010
1111 runs-on : ubuntu-latest
12+ environment : release
13+ permissions :
14+ id-token : write # mandatory for trusted publishing
1215
1316 steps :
1417 - uses : actions/checkout@v4
1518 - uses : actions/setup-python@v5
1619 with :
1720 python-version : " 3.11"
1821
19- - run : pip install -U pip setuptools wheel twine ' tox<4'
22+ - run : pip install -U pip setuptools wheel tox
2023 - run : tox -e py,docs,style
2124 - run : python setup.py sdist bdist_wheel
2225
23- - name : Publish sdist and wheel
24- env :
25- TWINE_USERNAME : __token__
26- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
27- run : twine upload --non-interactive dist/*
26+ - name : Publish to PyPI
27+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
77usedevelop = True
88deps = -rrequirements.txt
99 -rtests/requirements.txt
10- commands = pytest {posargs:-vv --cov =src/ --cov-report =xml tests/}
10+ commands = pytest {posargs:-vv --cov =src/ --cov =tests/ -- cov -report =xml tests/}
1111
1212[testenv:coverage]
1313setenv = COVERAGE_FILE ={toxworkdir}/.coverage
@@ -21,15 +21,14 @@ commands = coverage combine
2121[testenv:style]
2222skip_install = True
2323deps = ruff
24- commands = ruff check --diff
25- ruff check --output-format =full
24+ commands = ruff check
2625 ruff format --diff
2726
2827[testenv:reformat]
2928skip_install = True
3029deps = ruff
31- commands = ruff check --fix {posargs:}
32- ruff format {posargs:}
30+ commands = ruff check --fix
31+ ruff format
3332
3433[testenv:docs]
3534skip_install = True
You can’t perform that action at this time.
0 commit comments