Fixes CI/CD
This commit is contained in:
9
.github/workflows/python-tests.yml
vendored
9
.github/workflows/python-tests.yml
vendored
@@ -4,8 +4,7 @@
|
|||||||
name: Python application
|
name: Python application
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push
|
||||||
branches: [ "main", "develop" ]
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -24,8 +23,8 @@ jobs:
|
|||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip pipenv
|
python -m pip install --upgrade pip poetry
|
||||||
if [ -f Pipfile ]; then pipenv install; fi
|
python -m poetry install
|
||||||
- name: Test with unittest
|
- name: Test with unittest
|
||||||
run: |
|
run: |
|
||||||
pipenv run python -m unittest -v
|
poetry run python -m unittest -v
|
||||||
@@ -18,6 +18,9 @@ isort = "^5.12.0"
|
|||||||
pre-commit = "^3.3.1"
|
pre-commit = "^3.3.1"
|
||||||
poethepoet = "^0.20.0"
|
poethepoet = "^0.20.0"
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
crystalpol = "crystalpol.__main__:main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
Reference in New Issue
Block a user