Skip to content

Commit 4e57732

Browse files
committed
CI: Use Poetry in GHA instead of pip
1 parent a3656a1 commit 4e57732

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,18 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

31-
- name: Upgrade pip version
32-
run: |
33-
python -m pip install --upgrade pip
31+
- name: Install Poetry
32+
uses: snok/install-poetry@v1
3433

35-
- name: Install requirements
36-
run: |
37-
pip install -r requirements.txt
38-
pip install -r docs/requirements.txt
34+
- name: 'Install dependencies'
35+
run: poetry install
3936

4037
- name: Build package
41-
run: |
42-
python -m pip install .
38+
run: poetry build
4339

4440
- name: Run tests
4541
run: |
46-
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
42+
poetry run pytest --doctest-modules --cov=./ --cov-report=xml -s
4743
4844
- name: Upload Coverage
4945
uses: codecov/codecov-action@v2
@@ -57,7 +53,3 @@ jobs:
5753
name: codecov-umbrella
5854
path_to_write_report: ./coverage/codecov_report.txt
5955
verbose: true
60-
61-
- name: Build Documentation
62-
run: |
63-
sphinx-build -b html docs/source/ docs/build/html

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "cz-pydatastructs"
2+
name = "pydatastructs"
33
version = "1.0.1-dev"
44
description = "A python package for data structures"
55
authors = ["PyDataStructs Development Team"]

0 commit comments

Comments
 (0)