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 workflow (add python3.12 to tests and other) #398

Merged
merged 7 commits into from
May 24, 2024
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
15 changes: 3 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ 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:${{ matrix.python-version }}
container: python:3.8
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
Expand All @@ -25,11 +22,8 @@ jobs:

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

container: python:${{ matrix.python-version }}
container: python:3.8
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
Expand All @@ -44,11 +38,8 @@ jobs:

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

container: python:${{ matrix.python-version }}
container: python:3.8
steps:
- uses: actions/checkout@v2
- name: Init python poetry action
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: Test pyzeebe
on: [push, pull_request]

jobs:
# 3.6 and 3.7 only for passing branch rules
# https://github.com/camunda-community-hub/pyzeebe/issues/381#issuecomment-2107430780
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

container: python:${{ matrix.python-version }}
steps:
Expand All @@ -16,16 +18,20 @@ jobs:
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}
- name: Install dependencies
run: poetry install
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}
- name: Test with pytest
run: |
poetry run coverage run --source=pyzeebe -m pytest tests/unit
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}
- name: Upload to coveralls
run: |
poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}

integration-test:
env:
Expand Down
Loading
Loading