Skip to content

Commit 4efd4f4

Browse files
Merge pull request #344 from yuval9313/update-ci
Update all pipelines to gh poetry action and add python 3.11 tests, r…
2 parents 807959d + 4dbfcf8 commit 4efd4f4

File tree

3 files changed

+41
-21
lines changed

3 files changed

+41
-21
lines changed

.github/workflows/lint.yml

+28-12
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,61 @@ name: Lint pyzeebe
22

33
on: [push, pull_request]
44

5+
56
jobs:
67
type-checking:
78
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
812

9-
container: python:3.8
13+
container: python:${{ matrix.python-version }}
1014
steps:
1115
- uses: actions/checkout@v2
16+
- name: Init python poetry action
17+
uses: abatilo/actions-poetry@v2.1.3
18+
with:
19+
poetry-version: 1.5.1
1220
- name: Install dependencies
13-
run: |
14-
pip install poetry
15-
poetry install
21+
run: poetry install
1622
- name: Lint with mypy
1723
run: |
1824
poetry run mypy pyzeebe
1925
2026
import-checking:
2127
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2231

23-
container: python:3.8
32+
container: python:${{ matrix.python-version }}
2433
steps:
2534
- uses: actions/checkout@v2
35+
- name: Init python poetry action
36+
uses: abatilo/actions-poetry@v2.1.3
37+
with:
38+
poetry-version: 1.5.1
2639
- name: Install dependencies
27-
run: |
28-
pip install poetry
29-
poetry install
40+
run: poetry install
3041
- name: Check imports
3142
run: |
3243
poetry run isort . --check --diff
3344
3445
format-checking:
3546
runs-on: ubuntu-latest
47+
strategy:
48+
matrix:
49+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
3650

37-
container: python:3.8
51+
container: python:${{ matrix.python-version }}
3852
steps:
3953
- uses: actions/checkout@v2
54+
- name: Init python poetry action
55+
uses: abatilo/actions-poetry@v2.1.3
56+
with:
57+
poetry-version: 1.5.1
4058
- name: Install dependencies
41-
run: |
42-
pip install poetry
43-
poetry install
59+
run: poetry install
4460
- name: Check imports
4561
run: |
4662
poetry run black --check .

.github/workflows/publish.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.8
17+
python-version: 3.10
18+
- name: Init python poetry action
19+
uses: abatilo/actions-poetry@v2.1.3
20+
with:
21+
poetry-version: 1.5.1
1822
- name: Install dependencies
19-
run: |
20-
pip install poetry
23+
run: poetry install
2124
- name: Build and publish
2225
env:
23-
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
24-
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
2527
run: |
2628
poetry build
2729
poetry publish

.github/workflows/test.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.7", "3.8", "3.9", "3.10"]
10+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1111

1212
container: python:${{ matrix.python-version }}
1313
steps:
1414
- uses: actions/checkout@v2
15+
- name: Init python poetry action
16+
uses: abatilo/actions-poetry@v2.1.3
17+
with:
18+
poetry-version: 1.5.1
1519
- name: Install dependencies
16-
run: |
17-
pip install poetry
18-
poetry install
20+
run: poetry install
1921
- name: Test with pytest
2022
run: |
2123
poetry run coverage run --source=pyzeebe -m py.test tests/unit

0 commit comments

Comments
 (0)