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
51 changes: 24 additions & 27 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,39 @@ permissions:
on:
push:
branches:
- "main"
- "main"
pull_request:
branches:
- "main"
- "main"

jobs:

lint:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup PDM
uses: pdm-project/setup-pdm@v4.4
with:
python-version: ${{ matrix.python-version }}
# The target architecture (x86, x64) of the Python interpreter.
# architecture: # optional
version: 2.26.3
cache: true
cache-dependency-path: ./py${{ matrix.python-version }}.lock

- name: Install dependencies
run: pdm install --frozen-lockfile -L ./py${{ matrix.python-version }}.lock

- name: Analyzing the code with pylint
run: pdm run pylint src
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Setup PDM
uses: pdm-project/setup-pdm@v4.4
with:
python-version: ${{ matrix.python-version }}
# The target architecture (x86, x64) of the Python interpreter.
# architecture: # optional
version: 2.26.7
cache: true
cache-dependency-path: ./py${{ matrix.python-version }}.lock

- name: Install dependencies
run: pdm install --frozen-lockfile -L ./py${{ matrix.python-version }}.lock

- name: Analyzing the code with pylint
run: pdm run pylint src
61 changes: 29 additions & 32 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ permissions:
on:
push:
branches:
- "main"
- "main"
pull_request:
branches:
- "main"
- "main"

jobs:

test:

strategy:
fail-fast: false
matrix:
Expand All @@ -23,31 +21,30 @@ jobs:
runs-on: ${{ matrix.os }}

steps:

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup PDM
uses: pdm-project/setup-pdm@v4.4
with:
python-version: ${{ matrix.python-version }}
# The target architecture (x86, x64) of the Python interpreter.
# architecture: # optional
version: 2.26.3
cache: true
cache-dependency-path: ./py${{ matrix.python-version }}.lock

- name: Install dependencies
run: pdm install --frozen-lockfile -L ./py${{ matrix.python-version }}.lock

- name: Test with pytest
run: pdm run pytest --timeout=90

- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Setup PDM
uses: pdm-project/setup-pdm@v4.4
with:
python-version: ${{ matrix.python-version }}
# The target architecture (x86, x64) of the Python interpreter.
# architecture: # optional
version: 2.26.7
cache: true
cache-dependency-path: ./py${{ matrix.python-version }}.lock

- name: Install dependencies
run: pdm install --frozen-lockfile -L ./py${{ matrix.python-version }}.lock

- name: Test with pytest
run: pdm run pytest --timeout=90

- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ on:
tags:
- "v*"


jobs:

publish-to-pypi:

name: Publish distribution to PyPI
runs-on: ubuntu-latest
permissions:
Expand All @@ -20,15 +17,14 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:

- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup PDM
uses: pdm-project/setup-pdm@v4.4
with:
# The target architecture (x86, x64) of the Python interpreter.
# architecture: # optional
version: 2.26.3
version: 2.26.7
cache: true

- name: Publish package distributions to PyPI
Expand Down
Loading