Repository: airtai/docstring-gen (language: python)

Issue:
Use action to install quarto



Discussion / hints:

Fix patch:
diff --git a/nbs/Docstring_Generator.ipynb b/nbs/Docstring_Generator.ipynb
index da562e1..ab6e3a3 100644
--- a/nbs/Docstring_Generator.ipynb
+++ b/nbs/Docstring_Generator.ipynb
@@ -23,16 +23,7 @@
    "execution_count": null,
    "id": "ac658e8e",
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stderr",
-     "output_type": "stream",
-     "text": [
-      "/Users/harishm/.pyenv/versions/3.10.4/lib/python3.10/site-packages/pandas/compat/__init__.py:124: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.\n",
-      "  warnings.warn(msg)\n"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
     "# | export\n",
     "\n",
@@ -2044,16 +2035,16 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/.hidden\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/test_1.ipynb\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/settings.ini\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/test.ipynb\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/_test.ipynb\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/.hidden/test_1.ipynb\n",
-      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/.hidden/test.ipynb\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/.hidden\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/test_1.ipynb\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/settings.ini\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/test.ipynb\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/_test.ipynb\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/.hidden/test_1.ipynb\n",
+      "/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/.hidden/test.ipynb\n",
       "\n",
       "\n",
-      "[PosixPath('/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/test_1.ipynb'), PosixPath('/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxiadc41p/nbs/test.ipynb')]\n"
+      "[PosixPath('/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/test_1.ipynb'), PosixPath('/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmps_19y7i1/nbs/test.ipynb')]\n"
      ]
     }
    ],
@@ -2090,7 +2081,7 @@
     "\n",
     "    assert len(files) == 2\n",
     "    print(f\"\\n\\n{files}\")\n",
-    "    assert files == [nbs_path / \"test_1.ipynb\", nbs_path / \"test.ipynb\"]"
+    "    assert sorted(files) == sorted([nbs_path / \"test_1.ipynb\", nbs_path / \"test.ipynb\"]), files"
    ]
   },
   {
@@ -2103,7 +2094,7 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "The directory /private/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpw0jshas3/nbs does not contain any Python files or notebooks\n"
+      "The directory /private/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmp8t12t08s/nbs does not contain any Python files or notebooks\n"
      ]
     }
    ],
@@ -2305,12 +2296,12 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "\u001b[33mWARNING: Unable to parse the /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpgo6er663/nbs/invalid_test_data.py due to: invalid syntax (<unknown>, line 4). Skipping the file for docstring generation.\u001b[0m\n",
-      "\u001b[36mSuccessfully added docstrings to /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpgo6er663/nbs/test_data.py\u001b[0m\n",
-      "\u001b[33mWARNING: Unable to parse the below cell contents in /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpgo6er663/nbs/test.ipynb due to: invalid syntax (<unknown>, line 2). Skipping the cell for docstring generation.\u001b[0m\n",
+      "\u001b[33mWARNING: Unable to parse the /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxlv2_fom/nbs/invalid_test_data.py due to: invalid syntax (<unknown>, line 4). Skipping the file for docstring generation.\u001b[0m\n",
+      "\u001b[36mSuccessfully added docstrings to /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxlv2_fom/nbs/test_data.py\u001b[0m\n",
+      "\u001b[33mWARNING: Unable to parse the below cell contents in /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxlv2_fom/nbs/test.ipynb due to: invalid syntax (<unknown>, line 2). Skipping the cell for docstring generation.\u001b[0m\n",
       "with TemporaryDirectory() as d:\n",
       "    !ls -la {d}\n",
-      "\u001b[36mSuccessfully added docstrings to /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpgo6er663/nbs/test.ipynb\u001b[0m\n",
+      "\u001b[36mSuccessfully added docstrings to /var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpxlv2_fom/nbs/test.ipynb\u001b[0m\n",
       "# | export\n",
       "\n",
       "from typing import *\n",


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index b005348..0c9222c 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -27,14 +27,7 @@ jobs:
 
     steps:
       - name: Install quarto
-        run: |
-          if [ ${{ matrix.os }} == 'ubuntu' ]; then
-            wget -q https://www.quarto.org/download/latest/quarto-linux-amd64.deb
-            sudo dpkg -i quarto-linux-amd64.deb
-          else
-            wget -q https://www.quarto.org/download/latest/quarto-macos.pkg
-            sudo installer -pkg quarto-macos.pkg -target /
-          fi
+        uses: quarto-dev/quarto-actions/setup@v2
       - uses: fastai/workflows/nbdev-ci@master
         with:
           version: ${{ matrix.version }}