Skip to content

Commit

Permalink
Add CI pipeline job to check for version accordance
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerklinger committed Oct 29, 2024
1 parent ea75618 commit 48e6143
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ jobs:
run: make install
- name: Check docs
run: make check-docs
check-version-accordance:
name: Check for version accordance
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install required packages
run: dnf makecache && dnf install -y make rpm-build python python-pip
- name: Install Poetry
run: pip install poetry
- name: Create virtual environment
run: make install
- name: Check versions (Python package and RPM specification)
shell: bash
run: |
PACKAGE_VERSION=$($(poetry env info --path)/bin/python -c "import importlib.metadata; print(importlib.metadata.version('nitrokey'))")
RPM_VERSION=$(rpmspec -q --qf "%{version}" ci-scripts/linux/rpm/python3-nitrokey.spec)
if [ $PACKAGE_VERSION == $RPM_VERSION ]; then exit 0; else exit 1; fi
build-docs:
name: Build documentation
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Remove two step update handling on macOS
- Correct update message
- Add RPM specification file
- Add CI test to make sure versions in `pyproject.toml` and `python3-nitrokey.spec` are the same

[All Changes](https://github.com/Nitrokey/nitrokey-sdk-py/compare/v0.2.2...HEAD)

Expand Down

0 comments on commit 48e6143

Please sign in to comment.