Skip to content

Commit

Permalink
update release processes. need to add tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfast committed Nov 21, 2023
1 parent f370b3f commit 7804f68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
python -m pip install --upgrade pip
pip install hatch
- name: Test the project
run: hatch run test:cov
run: hatch run test:run
- name: Build
run: hatch build
- name: Publish package
run: hatch publish -r test --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_TEST_INDEX_AUTH}}
if: github.event_name != 'release'
- name: Test the released packaged
run: hatch run released:test
run: hatch run release:test
if: github.event_name != 'release'
- name: Publish to mainline
run: hatch publish --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_INDEX_AUTH}}
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies = [
"markdown-it-py[linkify,plugins]",
"nbconvert",
"python-slugify",
"exceptiongroup; python_version < '3.11'",
]
dynamic = ["version"]

Expand Down Expand Up @@ -69,6 +70,7 @@ serve = "mkdocs serve -v"
[project.entry-points."nbconvert.exporters"]
a11y = "nbconvert_a11y.form_exporter:A11yExporter"
html5_test = "nbconvert_a11y.exporters:Html5Test"

[project.entry-points.pytest11]
a11y = "nbconvert_a11y.form_exporter:A11yExporter"
axe = "nbconvert_a11y.pytest_axe"
Expand Down Expand Up @@ -110,7 +112,7 @@ env.CI.post-install-commands = [

[tool.hatch.envs.release]
# test a release on test-pypi
dependencies = ["nbconvert-a11y", "pytest"]
dependencies = ["nbconvert-a11y", "pytest", "pytest-html", "pytest-xdist"]

[tool.hatch.envs.release.scripts]
test = "pytest tests/test_smoke.py"
Expand Down

0 comments on commit 7804f68

Please sign in to comment.