diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 914cf62..b9fd5f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout repository and submodules uses: actions/checkout@v4 @@ -32,8 +32,12 @@ jobs: run: make test - name: Lint with flake8 ⚙️ run: make lint - if: matrix.python-version == 3.7 + if: matrix.python-version == 3.9 + - name: Install documentation dependencies + run: | + if [ -f requirements_docs.txt ]; then pip install -r requirements_docs.txt; fi + if: matrix.python-version == 3.9 - name: Build docs 🏗️ run: make docs - if: matrix.python-version == 3.7 + if: matrix.python-version == 3.9 diff --git a/requirements_docs.txt b/requirements_docs.txt new file mode 100644 index 0000000..4eab94a --- /dev/null +++ b/requirements_docs.txt @@ -0,0 +1,3 @@ +sphinx +nbsphinx +ipython \ No newline at end of file diff --git a/tests/test_hawk.py b/tests/test_hawk.py index eff6891..b0712e0 100644 --- a/tests/test_hawk.py +++ b/tests/test_hawk.py @@ -4,10 +4,10 @@ import pytest -from click.testing import CliRunner +from click.testing import CliRunner # noqa: F401 -import hawk -from hawk import cli +import hawk # noqa: F401 +from hawk import cli # noqa: F401 @pytest.fixture