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
16 changes: 0 additions & 16 deletions .ci-before-script.sh

This file was deleted.

19 changes: 0 additions & 19 deletions .ci-runs-tests.sh

This file was deleted.

53 changes: 40 additions & 13 deletions .github/workflows/tests-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
max-parallel: 4
fail-fast: false
matrix:
# Keep every version quoted. Unquoted 3.10 parses as the float 3.1.
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
Expand All @@ -21,24 +29,43 @@ jobs:
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
STEP="tests" ./.ci-before-script.sh
- name: Run tests or lint
cache: pip

- name: Install memcached
run: sudo apt-get update && sudo apt-get install -y memcached

- name: Install dependencies
run: |
STEP="tests" ./.ci-runs-tests.sh
python -m pip install --upgrade pip
pip install -e .
pip install --group test

- name: Run tests
run: pytest --cov=bmemcached --cov-report=xml --cov-report=term

- name: Upload coverage report
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage-xml
path: coverage.xml

lint:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v7
- name: Set up Python 3.10

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.10"
- name: Install Dependencies
run: |
STEP="lint" ./.ci-before-script.sh
- name: Run tests or lint
python-version: "3.12"
cache: pip

- name: Run ruff
run: |
STEP="lint" ./.ci-runs-tests.sh
python -m pip install --upgrade pip
pip install --group lint
ruff check .
ruff format --check .
32 changes: 31 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:recommended",
":semanticCommits",
":semanticCommitTypeAll(chore)"
],
"timezone": "Europe/Berlin",
"schedule": ["before 6am on monday"],
"enabledManagers": [
Comment thread
jaysonsantos marked this conversation as resolved.
"github-actions",
"pep621",
"pip_requirements",
"pre-commit",
"nix"
],
"pre-commit": {
"enabled": true
},
"lockFileMaintenance": {
"enabled": true
},
"packageRules": [
{
"description": "Group every patch and minor update into one pull request.",
"matchUpdateTypes": ["minor", "patch", "digest"],
"groupName": "all non-major updates",
"groupSlug": "all-minor-patch"
},
{
"description": "Keep each major update in its own pull request.",
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
}
Loading