diff --git a/.github/workflows/python-linting.yml b/.github/workflows/python-linting.yml index 4c5655a3..88e616ba 100644 --- a/.github/workflows/python-linting.yml +++ b/.github/workflows/python-linting.yml @@ -12,7 +12,6 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v1 with: - python-version: "3.6" + python-version: "3.8" - name: flake8 Lint - uses: py-actions/flake8@v1 - + uses: py-actions/flake8@v1 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8caed980..3df87920 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ macos-latest, ubuntu-latest, windows-latest] + os: [ macos-latest, ubuntu-20.04, windows-latest] python: [ 3.6, 3.7, 3.8, 3.9 ] env: @@ -20,10 +20,10 @@ jobs: timeout-minutes: 15 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.5.2 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4.6.0 with: python-version: ${{ matrix.python }} @@ -34,4 +34,4 @@ jobs: python -m pip install mypy - name: Run backup - run: ./tests.py + run: ./tests.py \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b21ed77b..9130d917 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # WARNING: don't forget to update setup.py -gitpython>=3.1.* -loguru==0.4.* -pathvalidate==2.* -python-dotenv>=0.10.* -psutil>=5.6.0 -selenium==3.* \ No newline at end of file +gitpython==3.1.20 +loguru==0.4.1 +pathvalidate==2.5.2 +python-dotenv==0.20 +psutil==5.9.5 +selenium==3.13.0 \ No newline at end of file diff --git a/roam_to_git/scrapping.py b/roam_to_git/scrapping.py index 236aced7..747758ca 100644 --- a/roam_to_git/scrapping.py +++ b/roam_to_git/scrapping.py @@ -39,8 +39,7 @@ def __init__(self, browser, output_directory, headless=True, debug=False): logger.trace("Start Firefox") self.browser = webdriver.Firefox(firefox_profile=firefox_profile, - firefox_options=firefox_options, - service_log_path=os.devnull) + firefox_options=firefox_options) elif browser == Browser.PHANTOMJS: raise NotImplementedError() # TODO configure diff --git a/tests.py b/tests.py index 88594b60..4064801f 100755 --- a/tests.py +++ b/tests.py @@ -1,9 +1,8 @@ #!/usr/bin/env python3 +import os import unittest -from pathlib import Path -from typing import List - import mypy.api +from typing import List from roam_to_git.formatter import extract_links, format_link, format_to_do @@ -124,8 +123,9 @@ def test_mypy_rtg_and_tests(self): self._test_mypy(["roam_to_git", "tests.py"]) def test_mypy_all(self): - self._test_mypy([str(f) for f in Path(__file__).parent.iterdir() - if f.is_file() and f.name.endswith(".py")]) + self._test_mypy([str(f) for f in os.listdir(".") + if os.path.isfile(f) and f.endswith(".py") + and not f.startswith("setup")]) if __name__ == "__main__":