Skip to content
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: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
lint:
name: Lint and type check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.14"
cache: pip
- run: pip install -e ".[all,dev]"
- run: ruff check .
Expand All @@ -30,10 +31,11 @@ jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -46,35 +48,38 @@ jobs:
test-minimal:
name: Test without optional extras
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.14"
cache: pip
- run: pip install -e ".[dev]"
- run: pytest

test-old-json-logger:
name: Test with python-json-logger 2.x
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.14"
cache: pip
- run: pip install -e ".[all,dev]" "python-json-logger==2.0.7"
- run: pytest

build:
name: Build and install the package
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.14"
- run: python -m pip install build twine
- run: python -m build
- run: twine check dist/*
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
build:
name: Build the package
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.14"
- name: Check that the tag matches the package version
run: |
version=$(python -c "import re, pathlib; print(re.search(r'__version__ = \"(.+?)\"', pathlib.Path('ctxlogkit/_version.py').read_text()).group(1))")
Expand All @@ -39,6 +40,7 @@ jobs:
name: Create the GitHub release
needs: build
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
steps:
Expand All @@ -56,6 +58,7 @@ jobs:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
timeout-minutes: 60
environment:
name: pypi
url: https://pypi.org/p/ctxlogkit
Expand Down
Loading