Skip to content

Commit

Permalink
Update supported towncrier (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair authored Aug 2, 2023
1 parent 916d987 commit 8cfad94
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
- '!*post*'
pull_request:
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '18 7 1 * *' # Every 1st of the month at 07:00 UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,7 +30,22 @@ jobs:
envs: |
- linux: codestyle
- linux: build_docs
- linux: build_docs_latesttowncrier
- linux: build_docs_devtowncrier
notify:
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: Cadair/matrix-notify-action@main
with:
matrix_token: ${{ secrets.matrix_access_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
homeserver: ${{ secrets.matrix_homeserver }}
roomid: '!fZOLFXlQvSoKfLAVrd:openastronomy.org'
ignore_pattern: '.*Load.*'
summarise_success: false

publish:
needs: [tests]
Expand Down
1 change: 1 addition & 0 deletions changelog/20.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update supported version of towncrier
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python_requires = >=3.6
setup_requires = setuptools_scm
install_requires =
sphinx
towncrier==22.12.0
towncrier==23.6.0

[options.extras_require]
all =
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ commands =
pip freeze
sphinx-build -W -b html . _build/html {posargs}

[testenv:build_docs_latesttowncrier]
[testenv:build_docs_devtowncrier]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands_pre =
python -m pip install towncrier --upgrade
python -m pip install --upgrade git+https://github.com/twisted/towncrier.git
commands =
pip freeze
sphinx-build -W -b html . _build/html {posargs}

0 comments on commit 8cfad94

Please sign in to comment.