Skip to content

Commit

Permalink
feat: verify python version in docker dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
madwort committed Jan 19, 2024
1 parent 940cfb5 commit 34d4efc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_python_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ def test_github_workflows(filename, python_version):
contents = filename.read_text()
for match in re.findall(r"python-version:.*?([\d\.]+)", contents):
assert match == python_version


@pytest.mark.parametrize(
"filename",
BASE_DIR.glob("docker/dependencies*.txt"),
ids=lambda path: path.name,
)
def test_docker_dependencies(filename, python_version):
contents = filename.read_text()
for match in re.findall(r"python.*?([\d\.]+)", contents):
assert match == python_version

0 comments on commit 34d4efc

Please sign in to comment.