Skip to content

Commit

Permalink
Add continuous integration with read the doc instead of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Apr 5, 2021
1 parent 85ef625 commit 6e2b99a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
35 changes: 1 addition & 34 deletions .github/workflows/ci.yaml
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -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?
===========================
Expand Down

0 comments on commit 6e2b99a

Please sign in to comment.