From 55fb0da814a16ea8d0d448ec520268f71f1a251d Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 12 May 2023 14:42:12 -0300 Subject: [PATCH] Fixes CI/CD --- .github/workflows/python-tests.yml | 9 ++++----- pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 4f2d764..897e0fb 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -4,8 +4,7 @@ name: Python application on: - push: - branches: [ "main", "develop" ] + push permissions: contents: read @@ -24,8 +23,8 @@ jobs: python-version: "3.8" - name: Install dependencies run: | - python -m pip install --upgrade pip pipenv - if [ -f Pipfile ]; then pipenv install; fi + python -m pip install --upgrade pip poetry + python -m poetry install - name: Test with unittest run: | - pipenv run python -m unittest -v \ No newline at end of file + poetry run python -m unittest -v \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3ca1a73..6b824ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,9 @@ isort = "^5.12.0" pre-commit = "^3.3.1" poethepoet = "^0.20.0" +[tool.poetry.scripts] +crystalpol = "crystalpol.__main__:main" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"