Skip to content
Draft
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
22 changes: 0 additions & 22 deletions .coveragerc

This file was deleted.

14 changes: 8 additions & 6 deletions .github/workflows/integrationtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
permissions: read-all
strategy:
matrix:
python-version: [ '3.10' ]
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v7
Expand All @@ -25,13 +25,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Install the requirements
run: pip install -r requirements.txt
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install the project with dev dependencies
run: uv sync --extra dev

- name: Execute the integrationtests (http1.1)
run: python3 -m unittest discover tests/integrationtest
run: uv run pytest tests/integrationtest
env:
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
Expand All @@ -45,7 +47,7 @@ jobs:
run: sleep 20

- name: Execute the integrationtests (http2)
run: python3 -m unittest discover tests/integrationtest
run: uv run pytest tests/integrationtest
env:
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.x']
python-version: ["3.12"]

steps:
- name: Checkout the repository and the branch
Expand All @@ -21,17 +21,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Install the requirements
run: pip install -r requirements.txt && pip install setuptools~=65.5.1 mkdocs mkdocs-material
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Install build tools and documentation dependencies
run: uv sync --extra dev

- name: Build a binary wheel and a source tarball
run: >-
Expand Down
55 changes: 31 additions & 24 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]

steps:
- uses: actions/checkout@v7
Expand All @@ -20,20 +20,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Install the requirements
run: pip install -r requirements.txt
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install the project with dev dependencies
run: uv sync --extra dev

- name: Execute the unittests
run: python3 -m unittest discover tests/unittests
run: uv run pytest tests/unittests

pr-lint:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
python-version: [ '3.10' ]
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v7
Expand All @@ -43,21 +45,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Execute the linting checks
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
flake8_args: --config=.flake8
fail_on_error: true
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install ruff
run: uv sync --extra dev

- name: Execute the linting checks with ruff
run: uv run ruff check .

pr-coverage:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
python-version: [ '3.10' ]
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v7
Expand All @@ -70,13 +73,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Install the requirements
run: pip install -r requirements.txt && pip install pytest-cov coverage-badge
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install the project and coverage tools
run: uv sync --extra dev

- name: Generate the coverage report
run: export PYTHONPATH=$PWD && pytest --junitxml=pytest.xml --cov=. tests/unittests | tee pytest-coverage.txt
run: export PYTHONPATH=$PWD && uv run pytest --junitxml=pytest.xml --cov=. tests/unittests | tee pytest-coverage.txt

- name: Execute the coverage checks
uses: MishaKav/pytest-coverage-comment@v1.8.0
Expand All @@ -88,7 +93,7 @@ jobs:
create-new-comment: true

- name: Generate coverage badge
run: coverage-badge -f -o docs/coverage.svg
run: uv run coverage-badge -f -o docs/coverage.svg

- name: Check changed files
uses: tj-actions/verify-changed-files@v20
Expand Down Expand Up @@ -117,7 +122,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9' ]
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v7
Expand All @@ -130,13 +135,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'

- name: Install the requirements
run: pip install pydoc-markdown==4.6.3 mkdocs mkdocs-material
- name: Install uv
uses: astral-sh/setup-uv@v2

- name: Install documentation tools
run: uv sync --extra docs

- name: Generate documentation
run: pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
run: uv run pydoc-markdown --build --site-dir build/docs && rm -rf docs/build docs/content docs/mkdocs.yml && mv build/docs/* docs

- name: Check changed files
uses: tj-actions/verify-changed-files@v20
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ dmypy.json

# Pyre type checker
.pyre/
.superpowers/
Loading
Loading