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
17 changes: 13 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Checkout project
id: checkout
uses: actions/checkout@v5

- name: Set up Python 3.13
uses: actions/setup-python@v6
id: setup-python
uses: actions/setup-python@v6
with:
python-version: "3.13"
architecture: x64

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install tox
id: install-tox
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-uv uv
uv pip install --system tox tox-uv

- name: Run benchmarks with CodSpeed
id: run-benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: instrumentation
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Checkout project
id: checkout
uses: actions/checkout@v5

- name: Set up Python 3.13
id: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.13'
python-version: "3.13"

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install tox
id: install-tox
run: |
python -m pip install --upgrade pip
python -m pip install tox uv tox-uv
uv pip install --system tox tox-uv

- name: Run code quality tests with tox
id: lint
run: tox
env:
TOXENV: ruff,mypy,docs
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Checkout project
id: checkout
uses: actions/checkout@v5

- name: Set up Python 3.13
id: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.13'
python-version: "3.13"

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Build wheel and source tarball with uv
id: build
run: uv build

- name: Build wheel and source tarball with uv_build
run: |
python -m pip install --upgrade pip
python -m pip install uv_build
python -m uv_build build
- name: Publish a Python distribution to PyPI
id: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,29 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']

steps:
- uses: actions/checkout@v5
- name: Checkout project
id: checkout
uses: actions/checkout@v5

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

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install tox and plugins
id: install-tox
run: |
python -m pip install tox tox-gh-actions tox-uv uv
uv pip install --system tox tox-uv tox-gh-actions

- name: Run unit tests with tox
id: test
run: tox

tests-old:
Expand All @@ -35,23 +46,35 @@ jobs:
python-version: ['3.7', '3.8']

steps:
- uses: actions/checkout@v5
- name: Checkout project
id: checkout
uses: actions/checkout@v5

- name: Set up Python 3.13 (tox runner)
id: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.13'

- name: Install tox and plugins (with Python 3.13)
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install tox and plugins
id: install-tox
run: |
python3.13 -m pip install tox tox-gh-actions tox-uv uv
uv pip install --system tox tox-uv tox-gh-actions

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

- name: Run unit tests with tox for target
id: test
shell: bash
run: |
ENV="py${{ matrix.python-version }}"; ENV=${ENV/./}
Expand Down