Skip to content

Commit

Permalink
added ctags to github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed Mar 24, 2024
1 parent 986a760 commit 096b390
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ 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
- name: Set up Python 3.10
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
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__pycache__/
outputs/
logs/
__pycache__/
outputs/
logs/
node_modules/
3 changes: 2 additions & 1 deletion tests/test_thepipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 096b390

Please sign in to comment.