File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 18
18
19
19
jobs :
20
20
build :
21
- runs-on : ubuntu-22.04
21
+ runs-on : ubuntu-latest
22
22
strategy :
23
23
matrix :
24
24
python_version : [
@@ -44,19 +44,23 @@ jobs:
44
44
path : ~/.cache/pre-commit
45
45
key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
46
46
47
+ - name : Install Poetry
48
+ run : |
49
+ curl -sSL https://install.python-poetry.org | python3 -
50
+ poetry --version
51
+
47
52
- name : Install dependencies
48
53
run : |
49
- pip install -r requirements_dev.txt
54
+ poetry install --with dev
50
55
51
- - name : style & lint checks
56
+ - name : Style & lint checks
52
57
run : |
53
- pre-commit run --all-files --color=always
58
+ poetry run pre-commit run --all-files --color=always
54
59
55
60
- name : pytest and coverage
56
61
run : |
57
- pip install -e .
58
- coverage run --source=routingpy --module pytest
59
- coverage lcov --include "routingpy/*"
62
+ poetry run coverage run --source=routingpy --module pytest
63
+ poetry run coverage lcov --include "routingpy/*"
60
64
env :
61
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
66
69
73
70
74
coveralls :
71
75
needs : build
72
- runs-on : ubuntu-22.04
76
+ runs-on : ubuntu-latest
73
77
steps :
74
78
- uses : actions/checkout@v4
75
79
- name : Download coverage artifact
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build_wheels :
12
- runs-on : ubuntu-22.04
12
+ runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
@@ -18,15 +18,20 @@ jobs:
18
18
with :
19
19
python-version : " 3.10"
20
20
21
+ - name : Install Poetry
22
+ run : |
23
+ curl -sSL https://install.python-poetry.org | python3 -
24
+ poetry --version
25
+
21
26
- name : Build Wheels
22
27
run : |
23
- pip install -r requirements_dev.txt
24
- python -m build --wheel
28
+ poetry build
25
29
26
- - name : Upload wheels
30
+ - name : Upload distributions ( wheels and sdist)
27
31
uses : actions/upload-artifact@v4
28
32
with :
29
- path : dist/*.whl
33
+ name : distributions
34
+ path : dist/*
30
35
31
36
upload_all :
32
37
needs : [build_wheels]
@@ -38,10 +43,10 @@ jobs:
38
43
with :
39
44
python-version : " 3.10"
40
45
41
- - name : Download artifact
46
+ - name : Download distributions
42
47
uses : actions/download-artifact@v4
43
48
with :
44
- name : artifact
49
+ name : distributions
45
50
path : dist
46
51
47
52
- uses : pypa/gh-action-pypi-publish@v1.4.2
You can’t perform that action at this time.
0 commit comments