summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-05 11:05:47 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-05 14:25:40 +0200
commitf46a1fc0e52512aae536a0b8f129b6c75b7ef8ca (patch)
tree1d6c0ae2f4a051500a91b895edef9b1136d50bf8
parent85ef625ed86ae584261f9e2dd1c7092db92b5da1 (diff)
downloadpylint-git-f46a1fc0e52512aae536a0b8f129b6c75b7ef8ca.tar.gz
Add continuous integration with read the doc instead of github actions
Closes #3850
-rw-r--r--.github/workflows/ci.yaml35
-rw-r--r--ChangeLog4
2 files changed, 5 insertions, 34 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index dc919e03c..ab8473c17 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -32,8 +32,7 @@ jobs:
id: generate-python-key
run: >-
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{
- hashFiles('pylint/__pkg_info__.py', 'requirements_test.txt',
- 'requirements_test_min.txt', 'requirements_docs.txt') }}"
+ hashFiles('pylint/__pkg_info__.py', 'requirements_test.txt', 'requirements_test_min.txt') }}"
- name: Restore Python virtual environment
id: cache-venv
uses: actions/cache@v2.1.4
@@ -51,7 +50,6 @@ jobs:
. venv/bin/activate
python -m pip install -U pip setuptools wheel
pip install -U -r requirements_test.txt
- pip install -U -r requirements_docs.txt
pip install -e .
- name: Generate pre-commit restore key
id: generate-pre-commit-key
@@ -143,37 +141,6 @@ jobs:
. venv/bin/activate
pytest tests/ -k unittest_spelling
- docs:
- name: Test generating docs
- runs-on: ubuntu-latest
- needs: prepare-base
- steps:
- - name: Check out code from GitHub
- uses: actions/checkout@v2.3.4
- - name: Set up Python ${{ env.DEFAULT_PYTHON }}
- id: python
- uses: actions/setup-python@v2.2.1
- with:
- python-version: ${{ env.DEFAULT_PYTHON }}
- - name: Restore Python virtual environment
- id: cache-venv
- uses: actions/cache@v2.1.4
- with:
- path: venv
- key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
- needs.prepare-base.outputs.python-key }}
- - name: Fail job if Python cache restore failed
- if: steps.cache-venv.outputs.cache-hit != 'true'
- run: |
- echo "Failed to restore Python venv from cache"
- exit 1
- - name: Generate documentation
- run: |
- . venv/bin/activate
- cd doc
- sphinx-build -W -b html -d _build/doctrees . _build/html
-
-
prepare-tests-linux:
name: Prepare tests for Python ${{ matrix.python-version }} (Linux)
runs-on: ubuntu-latest
diff --git a/ChangeLog b/ChangeLog
index 93c1aa79c..6806b983b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,10 @@ Release date: Undefined
Closes #4277
+* Continuous integration with read the doc has been added.
+
+ Closes #3850
+
What's New in Pylint 2.7.4?
===========================