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
54 changes: 45 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
Expand All @@ -18,17 +18,53 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
include:
- name: "pytest (3.9)"
python: "3.9"
tox: "3.9"
- name: "pytest (3.10)"
python: "3.10"
tox: "3.10"
- name: "pytest (3.11)"
python: "3.11"
tox: "3.11"
- name: "pytest (3.12)"
python: "3.12"
tox: "3.12"
- name: "pytest (3.13)"
python: "3.13"
tox: "3.13"
coverage: true
- name: "mypy"
python: "3.13"
tox: mypy
- name: "pyright"
python: "3.13"
tox: pyright
- name: "ruff format"
python: "3.13"
tox: ruff-format
- name: "ruff lint"
python: "3.13"
tox: ruff-lint
- name: "Docs"
python: "3.13"
tox: docs

name: ${{ matrix.name }}
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- run: python -Im pip install nox==2024.10.9 poetry==1.8.4
- run: python -Im nox --python ${{ matrix.python-version }}
python-version: ${{ matrix.python }}
- run: uv pip install tox tox-uv
- run: tox -e ${{ matrix.tox }}
if: ${{ ! matrix.coverage }}
- run: tox -e ${{ matrix.tox }} -- --cov-report=xml
if: ${{ matrix.coverage }}
- uses: codecov/codecov-action@v5
if: ${{ matrix.coverage }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.egg-info/
/*.lock
/.*_cache/
/.coverage
/.dmypy.json
Expand All @@ -8,5 +9,4 @@
/coverage.xml
/dist/
/docs/_build/
/poetry.lock
__pycache__/
6 changes: 3 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version: 2
build:
os: "ubuntu-24.04"
tools:
python: "3.12"
python: "3.13"
jobs:
post_create_environment:
- pip install poetry
- pip install uv
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --all-extras --only=main,docs
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --all-extras --group docs --link-mode copys

sphinx:
configuration: docs/conf.py
Expand Down
3 changes: 0 additions & 3 deletions .tool-versions

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ the parts of the API that there is an actual demand for.

Copyright
2019 [Otovo ASA](https://www.otovo.com/),
2023-2024 [Cardboard AS](https://cardboard.inc/).
2023-2025 [Cardboard AS](https://cardboard.inc/).

Licensed under the
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

project = "python-brreg"
author = "Cardboard AS"
copyright = f"2019 Otovo ASA, 2023-2024 {author}" # noqa: A001
copyright = f"2019 Otovo ASA, 2023-2025 {author}" # noqa: A001

extensions = [
"sphinx.ext.autodoc",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ License

Copyright
2019 `Otovo ASA <https://www.otovo.com/>`_,
2023-2024 `Cardboard AS <https://cardboard.inc/>`_.
2023-2025 `Cardboard AS <https://cardboard.inc/>`_.

Licensed under the
`Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>`_.
97 changes: 0 additions & 97 deletions noxfile.py

This file was deleted.

Loading
Loading