Skip to content

Commit 8bc568e

Browse files
authored
feat: replaced pipenv to poetry (#237)
* feat: replaced pipenv to poetry
1 parent cc6ea59 commit 8bc568e

File tree

11 files changed

+2347
-1593
lines changed

11 files changed

+2347
-1593
lines changed

.github/workflows/python-package.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.6, 3.7, 3.8]
17+
python-version: [3.6, 3.7, 3.8, 3.9]
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Set up Python ${{ matrix.python-version }}
@@ -24,11 +24,13 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install pipenv
28-
pipenv install --dev --system
27+
pip install poetry
28+
poetry install --extras "all" --no-interaction --no-root
29+
env:
30+
POETRY_VIRTUALENVS_CREATE: false
2931
- name: Test with pytest
3032
run: |
31-
python setup.py test
33+
pytest --cov=pyms --cov=tests tests/
3234
- name: Run mypy
3335
continue-on-error: true
3436
run: |
@@ -40,9 +42,9 @@ jobs:
4042
- name: Lint with pylint
4143
run: |
4244
pylint --rcfile=pylintrc pyms
43-
# - name: Security safety
44-
# run: |
45-
# safety check
45+
- name: Security safety
46+
run: |
47+
safety check
4648
- name: Security bandit
4749
run: |
4850
bandit -r pyms/

Pipfile

-14
This file was deleted.

Pipfile.lock

-1,411
This file was deleted.

0 commit comments

Comments
 (0)