Skip to content

Commit

Permalink
check dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
a-quelle committed Jan 18, 2025
1 parent 2a6c4ef commit b9bc2f4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ jobs:
- run: pip install pre-commit pyproject-flake8
- run: pre-commit install
- run: pre-commit run --all-files
test:
check_dependency_versions:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./test_dependency_versions.sh
test:
needs: check_dependency_versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion emu_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
"DEFAULT_MAX_KRYLOV_DIM",
]

__version__ = "1.2.2"
__version__ = "1.2.3"
14 changes: 14 additions & 0 deletions test_dependency_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
mps_string=`grep emu-base ci/emu_mps/pyproject.toml`
[[ "$mps_string" =~ .*([0-9]\.[0-9]\.[0-9]).* ]]
mps_dep=${BASH_REMATCH[1]}
echo mps depends on emu-base version $mps_dep
base_string=`grep version emu_base/__init__.py`
[[ "$base_string" =~ .*([0-9]\.[0-9]\.[0-9]).* ]]
base_version=${BASH_REMATCH[1]}
echo emu-base is version $base_version
if [[ $mps_dep == $base_version ]]
then
exit 0
else
exit 1
fi

0 comments on commit b9bc2f4

Please sign in to comment.