Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update all pipelines to gh poetry action and add python 3.11 tests, r… #344

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 28 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,61 @@ name: Lint pyzeebe

on: [push, pull_request]


jobs:
type-checking:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

container: python:3.8
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
pip install poetry
poetry install
run: poetry install
- name: Lint with mypy
run: |
poetry run mypy pyzeebe

import-checking:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

container: python:3.8
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
pip install poetry
poetry install
run: poetry install
- name: Check imports
run: |
poetry run isort . --check --diff

format-checking:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

container: python:3.8
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
pip install poetry
poetry install
run: poetry install
- name: Check imports
run: |
poetry run black --check .
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.10
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
pip install poetry
run: poetry install
- name: Build and publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry publish
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
pip install poetry
poetry install
run: poetry install
- name: Test with pytest
run: |
poetry run coverage run --source=pyzeebe -m py.test tests/unit
Expand Down