Drop dedicated CI job for NEWS fragment check

Why: This task is now handled as a part of pre-commit's checks.
This commit is contained in:
Pradyun Gedam 2019-09-24 17:41:07 +05:30
parent c47e1b6e5d
commit ff53e6d7d3
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
2 changed files with 0 additions and 27 deletions

View File

@ -41,17 +41,3 @@ jobs:
run: >-
python -m tox
env: ${{ matrix.env }}
news_format:
name: Check NEWS format
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
version: 3.7
- name: Install nox
run: pip install nox
- name: Check NEWS format
run: nox -s validate_news

View File

@ -1,7 +1,6 @@
"""Release time helpers, executed using nox.
"""
import glob
import io
import subprocess
@ -31,18 +30,6 @@ def get_author_list():
return sorted(authors, key=lambda x: x.lower())
# -----------------------------------------------------------------------------
# Ad-hoc commands
# -----------------------------------------------------------------------------
@nox.session
def validate_news(session):
session.install("rstcheck")
news_files = sorted(glob.glob("news/*"))
session.run("rstcheck", *news_files)
# -----------------------------------------------------------------------------
# Commands used during the release process
# -----------------------------------------------------------------------------