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: 6 additions & 11 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11", "3.10", "3.9", "3.8"]
python: ["3.13", "3.12", "3.11", "3.10"]

steps:

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

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry install
- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Run tests
run: |
poetry run pytest
run: uv run pytest
12 changes: 4 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
# Mini contribution guide

The package uses `pyproject.toml` and [Poetry](https://python-poetry.org/). To install the dependencies:

```console
$ poetry install --extras "docs"
```
The requires [`uv`](https://docs.astral.sh/uv/).

## Tests

To run tests with the current Python version:

```console
$ poetry run pytest
$ uv run pytest
```

To run tests with all supported Python versions:

```console
$ poetry run tox
$ uv run tox
```

## Docs

To build the docs, use [Sphinx](https://www.sphinx-doc.org/en/):

```console
$ poetry run sphinx-build docs docs/_build
$ uv run --group docs sphinx-build docs docs/_build
```

Then, browse from `docs/_build/index.html`.
Loading