Skip to content

Commit

Permalink
feat!: drop python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dimastbk committed Sep 19, 2024
1 parent 9621591 commit 854afe5
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 228 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
type-checking:
runs-on: ubuntu-latest

container: python:3.8
container: python:3.9
steps:
- uses: actions/checkout@v4
- name: Init python poetry action
Expand All @@ -23,7 +23,7 @@ jobs:
import-checking:
runs-on: ubuntu-latest

container: python:3.8
container: python:3.9
steps:
- uses: actions/checkout@v4
- name: Init python poetry action
Expand All @@ -39,7 +39,7 @@ jobs:
format-checking:
runs-on: ubuntu-latest

container: python:3.8
container: python:3.9
steps:
- uses: actions/checkout@v4
- name: Init python poetry action
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test pyzeebe
on: [push, pull_request]

jobs:
# 3.6 and 3.7 only for passing branch rules
# 3.6, 3.7 and 3.8 only for passing branch rules
# https://github.com/camunda-community-hub/pyzeebe/issues/381#issuecomment-2107430780
unit-test:
runs-on: ubuntu-latest
Expand All @@ -18,20 +18,20 @@ jobs:
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' && matrix.python-version != '3.8' }}
- name: Install dependencies
run: poetry install
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' }}
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' && matrix.python-version != '3.8' }}
- 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' }}
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' && matrix.python-version != '3.8' }}
- 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' }}
if: ${{ matrix.python-version != '3.6' && matrix.python-version != '3.7' && matrix.python-version != '3.8' }}

integration-test:
env:
Expand Down
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
language: python
files: \.py$
- repo: local
hooks:
- id: isort
name: isort
entry: isort
language: python
files: \.py$
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
pass_filenames: false
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
image: latest
python:
version: 3.8
version: 3.9
install:
- method: pip
path: .
Expand Down
Loading

0 comments on commit 854afe5

Please sign in to comment.