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
18 changes: 9 additions & 9 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ on:

jobs:
build_pages:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7.0.0
- uses: actions/setup-python@v6.3.0
with:
python-version: 3.11
- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4.0.0
with:
poetry-version: 1.7.1
- uses: actions/cache@v4
poetry-version: 2.2.1
- uses: actions/cache@v6.1.0
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
Expand All @@ -28,11 +28,11 @@ jobs:
- name: Build documentation
run: cd docs && poetry run make html
- name: Upload html
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v5.0.0
with:
path: ./docs/_build/html
deploy_pages:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: build_pages
permissions:
pages: write # to deploy to Pages
Expand All @@ -44,6 +44,6 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v5.0.0
with:
token: ${{secrets.GITHUB_TOKEN}}
26 changes: 13 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7.0.0
- uses: actions/setup-python@v6.3.0
with:
python-version: ${{ matrix.python-version }}
python-version: '3.11'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4.0.0
with:
poetry-version: 1.7.1
- uses: actions/cache@v4
- uses: actions/cache@v6.1.0
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Build Python packages
run: poetry build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v7.0.1
with:
name: python-package-distributions
path: dist/
Expand All @@ -38,19 +38,19 @@ jobs:
url: https://pypi.org/p/sensirion-uart-scc1
permissions:
id-token: write
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v8.0.1
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.14.0
github-release:
name: Sign Pyhon distribution and upload it as GitHub Release
name: Sign Python distribution and upload it as GitHub Release
needs:
- build
- publish-pypi
Expand All @@ -60,12 +60,12 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v8.0.1
with:
name: python-package-distributions
path: dist/
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@v1.2.3
uses: sigstore/gh-action-sigstore-python@v3.4.0
with:
inputs: >-
./dist/*.tar.gz
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04, macos-latest, windows-latest]
os: [ubuntu-24.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
permissions:
id-token: write
Expand All @@ -16,15 +16,15 @@ jobs:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7.0.0
- uses: actions/setup-python@v6.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v4.0.0
with:
poetry-version: 1.7.1
- uses: actions/cache@v4
- uses: actions/cache@v6.1.0
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Run tests
run: poetry run pytest -m "not needs_hardware"
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
uses: mikepenz/action-junit-report@v6.4.2
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'test-report*.xml'
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add interface for totalizer
- Ensure linux file endings across the package
- Fix several typos
- Update GitHub actions to latest versions
- Update dependencies

## [1.1.1] - 2024-4-10

Expand Down
9 changes: 3 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@
import os
import sys
from datetime import datetime

import pkg_resources
from importlib import metadata

# Add project directory such that sphinx can detect the package.
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

# -- Project information -----------------------------------------------------
distribution = pkg_resources.get_distribution('sensirion_uart_scc1')

project = distribution.project_name
project = 'sensirion-uart-scc1'
version = metadata.version('sensirion_uart_scc1')
copyright = u'{} Sensirion AG, Switzerland'.format(datetime.now().year)
author = 'Sensirion AG'
version = distribution.version


# -- General configuration ---------------------------------------------------
Expand Down
Loading
Loading