Browse Source

refactor pipeline config: detect name of top level module automatically

https://github.com/fphammerle/ical2vdir/commit/a6304756833de87af7317767452cfeaa2a54e179
Fabian Peter Hammerle 3 years ago
parent
commit
7ba62974af
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .github/workflows/python.yml

+ 3 - 3
.github/workflows/python.yml

@@ -50,8 +50,8 @@ jobs:
       env:
         PYTHON_VERSION: ${{ matrix.python-version }}
     - run: pipenv graph
-    - run: pipenv run pytest --cov=tooncher --cov-report=term-missing --cov-fail-under=63
-    - run: pipenv run pylint --load-plugins=pylint_import_requirements tooncher
+    - run: pipenv run pytest --cov="$(cat *.egg-info/top_level.txt)" --cov-report=term-missing --cov-fail-under=63
+    - run: pipenv run pylint --load-plugins=pylint_import_requirements "$(cat *.egg-info/top_level.txt)"
     # https://github.com/PyCQA/pylint/issues/352
     - run: pipenv run pylint tests/*
-    - run: pipenv run mypy tooncher tests
+    - run: pipenv run mypy "$(cat *.egg-info/top_level.txt)" tests