From fcc44abb569f30a824d3c4f4b0178251c3482a57 Mon Sep 17 00:00:00 2001 From: Teo Bucci Date: Thu, 21 Mar 2024 17:23:16 +0100 Subject: [PATCH 1/4] Fix for linting --- tests/test_hawk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 4ec6ea346ad7e7dffbbab44852a57d8b4ac6cc2d Mon Sep 17 00:00:00 2001 From: Teo Bucci Date: Thu, 21 Mar 2024 17:27:47 +0100 Subject: [PATCH 2/4] Update tests --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 914cf62..da591f8 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,8 @@ jobs: run: make test - name: Lint with flake8 ⚙️ run: make lint - if: matrix.python-version == 3.7 + if: matrix.python-version == 3.9 - name: Build docs 🏗️ run: make docs - if: matrix.python-version == 3.7 + if: matrix.python-version == 3.9 From b48f82369ac58fab3f30d78f8c3d3059e9794389 Mon Sep 17 00:00:00 2001 From: Teo Bucci Date: Thu, 21 Mar 2024 18:56:32 +0100 Subject: [PATCH 3/4] Install documentation dependencies in test --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da591f8..52db2a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,10 @@ jobs: - name: Lint with flake8 ⚙️ run: make lint if: matrix.python-version == 3.9 + - name: Install documentation dependencies + run: | + python -m pip install -r <(python -c "import yaml; print('\n'.join(yaml.safe_load(open('environment_docs.yaml'))['dependencies']))") + if: matrix.python-version == 3.9 - name: Build docs 🏗️ run: make docs if: matrix.python-version == 3.9 From 70515c9530d522b1fc7e858ec3e2b99d607d5a0a Mon Sep 17 00:00:00 2001 From: Teo Bucci Date: Fri, 22 Mar 2024 00:24:30 +0100 Subject: [PATCH 4/4] Add requirements for docs --- .github/workflows/main.yml | 2 +- requirements_docs.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 requirements_docs.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 52db2a0..b9fd5f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: if: matrix.python-version == 3.9 - name: Install documentation dependencies run: | - python -m pip install -r <(python -c "import yaml; print('\n'.join(yaml.safe_load(open('environment_docs.yaml'))['dependencies']))") + 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 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