From 096b3904959689e97d6344e76abf5f63140d8a96 Mon Sep 17 00:00:00 2001 From: Emmett McFaralne Date: Sat, 23 Mar 2024 21:32:18 -0400 Subject: [PATCH] added ctags to github ci --- .github/workflows/python-ci.yml | 6 ++++-- .gitignore | 6 +++--- tests/test_thepipe.py | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 24b8a74..d651ba3 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -19,7 +19,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Install dependencies + - name: Install ctags + run: sudo apt-get install -y universal-ctags + - name: Install npm dependencies run: npm install - name: Install Playwright Browsers run: npx playwright install --with-deps @@ -27,7 +29,7 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.10" - - name: Install dependencies + - name: Install pip dependencies run: | python -m pip install --upgrade pip pip install flake8 coverage diff --git a/.gitignore b/.gitignore index 29ea292..80fa39e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -__pycache__/ -outputs/ -logs/ +__pycache__/ +outputs/ +logs/ node_modules/ \ No newline at end of file diff --git a/tests/test_thepipe.py b/tests/test_thepipe.py index ac4b896..4cdf119 100644 --- a/tests/test_thepipe.py +++ b/tests/test_thepipe.py @@ -52,11 +52,12 @@ def test_extract_url(self): self.assertIsNotNone(chunk.text) self.assertIn('Piping', chunk.text) + @unittest.skipUnless(os.environ.get('GITHUB_TOKEN'), "requires GITHUB_TOKEN") def test_extract_github(self): chunks = thepipe.extract.extract_github(github_url='https://github.com/emcf/engshell', branch='main') self.assertEqual(type(chunks), list) self.assertNotEqual(len(chunks), 0) # should have some repo contents - + """ def test_compress_with_llmlingua(self): chunks = thepipe.extract.extract_from_source(source_string=self.files_directory+"/example.md")