Skip to content

Commit

Permalink
Merge pull request #398 from dimastbk/update-workflow
Browse files Browse the repository at this point in the history
Update workflow (add python 3.12 to tests, remove repeated jobs)
  • Loading branch information
dimastbk authored May 24, 2024
2 parents 6a56c79 + e9bf785 commit f13729b
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 68 deletions.
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

0 comments on commit f13729b

Please sign in to comment.