diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index c4afd551..40124b27 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,20 +6,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - uses: actions/checkout@v4 - name: set up python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 + with: + cache: 'pip' - name: install dependencies run: | - pip install ".[docs,lint,test]" + pip install ".[docs]" sudo apt-get -y update sudo apt-get -y install graphviz libclang1-11 libclang-cpp11 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c1165a57..9b054158 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,19 +6,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - uses: actions/checkout@v4 + - name: set up python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 + with: + cache: 'pip' - name: install dependencies run: | - pip install ".[docs,lint,test]" + pip install ".[lint]" - name: lint the source code run: make flake8 @@ -28,6 +25,3 @@ jobs: - name: type check the source code run: make type-check - - - name: check version numbers are in sync - run: make version-check diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 4642cd6a..a53ae8fb 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -36,17 +36,12 @@ jobs: sphinx-version: '6.1.3' steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - uses: actions/checkout@v4 - name: set up python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: install sphinx from PyPI or from git run: | @@ -58,7 +53,7 @@ jobs: - name: install dependencies run: | - pip install .[ + pip install ".[test]" - name: run the unit tests run: make dev-test diff --git a/Makefile b/Makefile index 8acedb7d..6e5957e8 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,3 @@ black: .PHONY: type-check type-check: mypy --warn-redundant-casts --warn-unused-ignores breathe tests - -.PHONY: version-check -version-check: - PYTHONPATH=../:$(PYTHONPATH) python3 scripts/version-check.py diff --git a/breathe-apidoc.py b/breathe-apidoc.py index a3437812..8aa276e5 100755 --- a/breathe-apidoc.py +++ b/breathe-apidoc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- import sys diff --git a/documentation/source/conf.py b/documentation/source/conf.py index a14d51e3..a0868216 100644 --- a/documentation/source/conf.py +++ b/documentation/source/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # BreatheExample documentation build configuration file, created by # sphinx-quickstart on Tue Feb 3 18:20:48 2009. # diff --git a/mkrelease b/mkrelease index 767c5642..c0a95c84 100755 --- a/mkrelease +++ b/mkrelease @@ -66,6 +66,7 @@ upload() ( cd -- mkrelease_tmp + twine check --strict dist/* twine upload -- dist/* { diff --git a/tests/warnings/source/conf.py b/tests/warnings/source/conf.py index 3b63231f..7dde9c8b 100644 --- a/tests/warnings/source/conf.py +++ b/tests/warnings/source/conf.py @@ -1,4 +1,3 @@ -# # Test Breathe Warnings documentation build configuration file, created by # sphinx-quickstart on Thu Jun 5 18:57:21 2014. #