diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 4f1024d..303aaeb 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,20 +20,20 @@ jobs: uses: tj-actions/changed-files@v44 with: files: "**/*.py" - fetch_depth: 0 + #fetch_depth: 0 - name: Install python - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' uses: actions/setup-python@v3 with: python-version: 3.x - run: pip install --upgrade pip - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' - run: pip install . - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' - run: pip install pylint==2.16.* - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' - run: pylint --rcfile=pylintrc ${{ steps.changed-files.outputs.all_changed_files }} - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ffb8ccd..50d3194 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,30 +19,30 @@ jobs: #fetch_depth: 0 - name: Set up Python all python version - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' uses: actions/setup-python@v3 with: python-version: 3.9 - name: Install dependencies - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files.outputs.test_any_changed == 'true' run: sudo apt-get install libgirepository1.0-dev - run: pip install --upgrade pip - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' - run: pip install . - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' - name: Run Test - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' run: coverage run -m unittest - name: Create coverage xml - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' run: coverage xml coverage.xml - name: Get Cover - if: steps.changed-files.output.any_changed == 'true' + if: steps.changed-files..outputs.test_any_changed == 'true' uses: orgoro/coverage@v3.1 with: coverageFile: coverage.xml diff --git a/svg2tikz/__init__.py b/svg2tikz/__init__.py index d478ad4..10a71df 100755 --- a/svg2tikz/__init__.py +++ b/svg2tikz/__init__.py @@ -1 +1,4 @@ +""" +Export main functions from SVG2tikz to be easily accessible from the package +""" from .tikz_export import convert_file, convert_svg